fp: Address more warnings on GCC
This commit is contained in:
parent
7a2b7618e8
commit
253d2826c9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user