summaryrefslogtreecommitdiff
path: root/src/game/g_admin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_admin.c')
-rw-r--r--src/game/g_admin.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c
index 93c1d54..cee380e 100644
--- a/src/game/g_admin.c
+++ b/src/game/g_admin.c
@@ -7807,8 +7807,6 @@ qboolean G_admin_bring( gentity_t *ent, int skiparg )
qboolean G_admin_putmespec( gentity_t *ent, int skiparg )
{
- int cs_offset;
-
if( !ent )
{
ADMP( "!specme: sorry, but console isn't allowed on the spectators team\n");
@@ -7823,13 +7821,8 @@ qboolean G_admin_putmespec( gentity_t *ent, int skiparg )
if(ent->client->pers.teamSelection == PTE_NONE)
return qfalse;
-
- if( ent->client->pers.teamSelection == PTE_ALIENS )
- cs_offset = 1;
- else
- cs_offset = 0;
- //guard against build timer exploit
+ //guard against build timer exploit
if( ent->client->pers.teamSelection != PTE_NONE && ent->client->sess.sessionTeam != TEAM_SPECTATOR &&
( ent->client->ps.stats[ STAT_PCLASS ] == PCL_ALIEN_BUILDER0 ||
ent->client->ps.stats[ STAT_PCLASS ] == PCL_ALIEN_BUILDER0_UPG ||
@@ -9379,9 +9372,10 @@ qboolean G_admin_report( gentity_t *ent, int skiparg )
if( strstr( n2, s2 ) )
{
- if( logmatch != i )
+ if( logmatch != i )
logmatches++;
- logmatch = i;
+
+ logmatch = i;
}
}
}