From 253d2826c985b37097b1c256e0c3fcbc853ad1ab Mon Sep 17 00:00:00 2001 From: doyle Date: Sat, 21 Oct 2023 00:08:09 +1100 Subject: [PATCH] fp: Address more warnings on GCC --- feely_pona_game.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/feely_pona_game.cpp b/feely_pona_game.cpp index cb1ebca..8fd5e46 100644 --- a/feely_pona_game.cpp +++ b/feely_pona_game.cpp @@ -1093,8 +1093,7 @@ static void FP_Game_MoveEntity(FP_Game *game, FP_GameEntityHandle entity_handle, if (DQN_ABS(entity->velocity.y) < 5.f) entity->velocity.y = 0.f; - Dqn_V2 const delta_pos = (acceleration * 0.5f * t_squared) + (entity->velocity * t); - Dqn_V2 const entity_pos = FP_Game_CalcEntityWorldPos(game, entity->handle); + Dqn_V2 const delta_pos = (acceleration * 0.5f * t_squared) + (entity->velocity * t); FP_GameCanMoveToPositionResult move_to_result = FP_Game_CanEntityMoveToPosition(game, entity->handle, delta_pos); if (move_to_result.yes) { entity->local_pos += delta_pos;