Fix player speed reduction logic

This commit is contained in:
nukeykt 2019-06-22 20:51:44 +09:00 committed by Christoph Oelckers
parent fdcf92e28b
commit 1fb877445c

View file

@ -7531,7 +7531,7 @@ check_enemy_sprite:
int playerSpeedReduction = 0;
if (!RRRA && ((pPlayer->on_ground && (TEST_SYNC_KEY(playerBits, SK_CROUCH)))
if (!RRRA && pPlayer->on_ground && (TEST_SYNC_KEY(playerBits, SK_CROUCH)
|| (*weaponFrame > 10 && pPlayer->curr_weapon == KNEE_WEAPON)))
playerSpeedReduction = 0x2000;
else if (sectorLotag == ST_2_UNDERWATER)