fp: Address more warnings on GCC

This commit is contained in:
doyle 2023-10-21 00:08:09 +11:00
parent 7a2b7618e8
commit 253d2826c9

View File

@ -1094,7 +1094,6 @@ static void FP_Game_MoveEntity(FP_Game *game, FP_GameEntityHandle entity_handle,
entity->velocity.y = 0.f; entity->velocity.y = 0.f;
Dqn_V2 const delta_pos = (acceleration * 0.5f * t_squared) + (entity->velocity * t); Dqn_V2 const delta_pos = (acceleration * 0.5f * t_squared) + (entity->velocity * t);
Dqn_V2 const entity_pos = FP_Game_CalcEntityWorldPos(game, entity->handle);
FP_GameCanMoveToPositionResult move_to_result = FP_Game_CanEntityMoveToPosition(game, entity->handle, delta_pos); FP_GameCanMoveToPositionResult move_to_result = FP_Game_CanEntityMoveToPosition(game, entity->handle, delta_pos);
if (move_to_result.yes) { if (move_to_result.yes) {
entity->local_pos += delta_pos; entity->local_pos += delta_pos;