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 c69e6da4..9eed943b 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -2277,6 +2277,9 @@ void Cmd_Spawnbody_f( gentity_t *ent )
{
gentity_t *dummy = G_Spawn( );
vec3_t forward;
+
+ if( !CheatsOk( ent ) )
+ return;
AngleVectors( ent->client->ps.viewangles, forward, NULL, NULL );
VectorMA( ent->client->ps.origin, 128.0f, forward, dummy->r.currentOrigin );