summaryrefslogtreecommitdiff
path: root/src/game/bg_pmove.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2003-11-19 01:54:33 +0000
committerTim Angus <tim@ngus.net>2003-11-19 01:54:33 +0000
commit743e132f5d95782e57324bfefdd652d86f621a5d (patch)
treef3d4a8d199e495e3adf552f86e6439cf325c452b /src/game/bg_pmove.c
parentc2f6695b62a3d2264b073c8bd59759237cf56af4 (diff)
* Added g_maprotation.c to the Makefile
* (Experimental) fix for the broken buildables bug * Fixed selling active jetpack bug * Fixed usable buildable appearing for opposing teams buildables
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;