summaryrefslogtreecommitdiff
path: root/src/game/g_cmds.c
diff options
context:
space:
mode:
authorTony J. White <tjw@tjw.org>2006-12-29 23:31:57 +0000
committerTony J. White <tjw@tjw.org>2006-12-29 23:31:57 +0000
commitefbd4de85142909a5e5d30ed7812666f095c68cd (patch)
treeff03916b937a50d9731415624301424619f98e94 /src/game/g_cmds.c
parent717589aa42f483cf962b5a7bb55498108dc5c35a (diff)
* (bug 2973) support for multiple initial base layouts ( Risujin, vcxzet, tjw )
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r--src/game/g_cmds.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index a52bc37d..fc5fff19 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -1809,8 +1809,9 @@ void Cmd_Destroy_f( gentity_t *ent, qboolean deconstruct )
else
G_FreeEntity( traceEnt );
- ent->client->ps.stats[ STAT_MISC ] +=
- BG_FindBuildDelayForWeapon( ent->s.weapon ) >> 2;
+ if( !g_cheats.integer )
+ ent->client->ps.stats[ STAT_MISC ] +=
+ BG_FindBuildDelayForWeapon( ent->s.weapon ) >> 2;
}
}
}