Commit df7d573e authored by Dino Bollinger's avatar Dino Bollinger Committed by Richard Gobeille
Browse files

Duke3D: Do not apply crouch speed modifier when shrunk

Fixes #108
parent 39ac4bc8
......@@ -5609,7 +5609,7 @@ void P_ProcessInput(int playerNum)
|| (*weaponFrame > 10 && PWEAPON(playerNum, pPlayer->curr_weapon, WorksLike) == KNEE_WEAPON)))
playerSpeedReduction = pPlayer->crouchspeedmodifier;
else if (pPlayer->on_ground && !pPlayer->jumping_toggle && !TEST_SYNC_KEY(playerBits, SK_CROUCH)
&& (klabs(pPlayer->truefz - pPlayer->truecz) - (PMINHEIGHT << 1)) < stepHeight)
&& !playerShrunk && (klabs(pPlayer->truefz - pPlayer->truecz) - (PMINHEIGHT << 1)) < stepHeight)
{
playerSpeedReduction = pPlayer->crouchspeedmodifier;
// pPlayer->pos.z += PCROUCHINCREMENT;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment