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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/bg_pmove.c b/src/game/bg_pmove.c
index c1c97142..446da8c0 100644
--- a/src/game/bg_pmove.c
+++ b/src/game/bg_pmove.c
@@ -920,8 +920,10 @@ static void PM_JetPackMove( void )
if( pm->cmd.upmove > 0.0f )
wishvel[ 2 ] = JETPACK_FLOAT_SPEED;
- if( pm->cmd.upmove < 0.0f )
+ else if( pm->cmd.upmove < 0.0f )
wishvel[ 2 ] = -JETPACK_SINK_SPEED;
+ else
+ wishvel[ 2 ] = 0.0f;
VectorCopy( wishvel, wishdir );
wishspeed = VectorNormalize( wishdir );