fp: Re-add phasing behaviour on terry dash

This commit is contained in:
doyle 2023-10-01 23:22:18 +11:00
parent be88c34439
commit 4212fe8452

View File

@ -146,7 +146,15 @@ static void FP_Game_MoveEntity(FP_Game *game, FP_GameEntityHandle entity_handle,
} break; } break;
case FP_EntityType_Nil: break; case FP_EntityType_Nil: break;
case FP_EntityType_Terry: break;
case FP_EntityType_Terry: {
FP_EntityTerryState state = *DQN_CAST(FP_EntityTerryState *)&entity->action.state;
if (state == FP_EntityTerryState_Dash) {
if (collider->type == FP_EntityType_Smoochie || collider->type == FP_EntityType_Clinger)
entity_collides_with_collider = false;
}
} break;
case FP_EntityType_MerchantTerry: break; case FP_EntityType_MerchantTerry: break;
case FP_EntityType_Count: break; case FP_EntityType_Count: break;
case FP_EntityType_ClubTerry: break; case FP_EntityType_ClubTerry: break;