- Multiply the resulting velocity by the player's speed when "jumping" underwater.

SVN r4209 (trunk)
This commit is contained in:
Randy Heit 2013-04-09 21:57:48 +00:00
parent 0d89183aa7
commit 0a9a54fca8

View file

@ -2338,10 +2338,9 @@ void P_PlayerThink (player_t *player)
// Jumping while crouching will force an un-crouch but not jump // Jumping while crouching will force an un-crouch but not jump
player->crouching = 1; player->crouching = 1;
} }
else else if (player->mo->waterlevel >= 2)
if (player->mo->waterlevel >= 2)
{ {
player->mo->velz = 4*FRACUNIT; player->mo->velz = FixedMul(4*FRACUNIT, player->mo->Speed);
} }
else if (player->mo->flags & MF_NOGRAVITY) else if (player->mo->flags & MF_NOGRAVITY)
{ {