Fix regression in lower velocity in water

Changelog:
- Revert jumped check for short hopping. Without it, the check will pass
  when player is in water
scene_man
En Yi 2023-02-23 20:53:12 +08:00
parent 95c4b98879
commit df66b7d9a3
1 changed files with 3 additions and 2 deletions

View File

@ -187,9 +187,10 @@ void player_movement_input_system(Scene_t* scene)
}
// Short Hop
//if (p_cjump->jumped)
// Jumped check is needed to make sure it is applied on jumps, not generally
// One issue caused is lower velocity in water
if (p_cjump->jumped)
{
if (!p_pstate->jump_pressed)
{
if (!p_cjump->short_hop && p_ctransform->velocity.y < 0)