summaryrefslogtreecommitdiff
path: root/src/game/g_cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r--src/game/g_cmds.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index 1f4de832..c63eee1a 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -1642,6 +1642,9 @@ void Cmd_Boost_f( gentity_t *ent )
BG_activated( UP_JETPACK, ent->client->ps.stats ) )
return;
+ if( ent->client->pers.cmd.buttons & BUTTON_WALKING )
+ return;
+
if( ( ent->client->ps.stats[ STAT_PTEAM ] == PTE_HUMANS ) &&
( ent->client->ps.stats[ STAT_STAMINA ] > 0 ) )
ent->client->ps.stats[ STAT_STATE ] |= SS_SPEEDBOOST;