Temp fix for 'crate super jump'

Changelog:
- Override jump height instead to adding to it
- This is pretty fun exploit though
scene_man
En Yi 2023-03-04 11:32:02 +08:00
parent 0a5eb36c34
commit ddcb71ed50
1 changed files with 2 additions and 2 deletions

View File

@ -334,11 +334,11 @@ void player_movement_input_system(Scene_t* scene)
p_cjump->jumps--;
if (!in_water)
{
p_ctransform->velocity.y -= p_cjump->jump_speed;
p_ctransform->velocity.y = -p_cjump->jump_speed;
}
else
{
p_ctransform->velocity.y -= p_cjump->jump_speed / 1.75;
p_ctransform->velocity.y = -p_cjump->jump_speed / 1.75;
}
p_cjump->jumped = true;