summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/g_cmds.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index 8822d1e..87cfd65 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -3118,6 +3118,12 @@ void Cmd_Class_f( gentity_t *ent )
trap_Argv( 1, s, sizeof( s ) );
newClass = BG_FindClassNumForName( s );
+ if( newClass == PCL_ALIEN_LEVEL0 )
+ {
+ trap_SendServerCommand( ent-g_entities, "print \"Dretch is deleted\n\"");
+ return;
+ }
+
if( ent->client->sess.sessionTeam == TEAM_SPECTATOR )
{
if( ent->client->sess.spectatorState == SPECTATOR_FOLLOW )