summaryrefslogtreecommitdiff
path: root/src/game/bg_pmove.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/bg_pmove.c')
-rw-r--r--src/game/bg_pmove.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game/bg_pmove.c b/src/game/bg_pmove.c
index 79399019..7001abb9 100644
--- a/src/game/bg_pmove.c
+++ b/src/game/bg_pmove.c
@@ -393,7 +393,8 @@ static float PM_CmdScale( usercmd_t *cmd )
if( BG_FindJumpMagnitudeForClass( pm->ps->stats[ STAT_PCLASS ] ) == 0.0f )
cmd->upmove = 0;
- if( !( pm->ps->pm_flags & PMF_DUCKED ) && cmd->upmove < 0 )
+ //prevent speed distortions for non ducking classes
+ if( !( pm->ps->pm_flags & PMF_DUCKED ) && pm->ps->pm_type != PM_JETPACK && cmd->upmove < 0 )
cmd->upmove = 0;
}
@@ -3222,7 +3223,7 @@ void PmoveSingle (pmove_t *pmove)
else if( pm->cmd.forwardmove > 0 || ( pm->cmd.forwardmove == 0 && pm->cmd.rightmove ) )
pm->ps->pm_flags &= ~PMF_BACKWARDS_RUN;
- if ( pm->ps->pm_type >= PM_DEAD )
+ if( pm->ps->pm_type >= PM_DEAD )
{
pm->cmd.forwardmove = 0;
pm->cmd.rightmove = 0;