summaryrefslogtreecommitdiff
path: root/src/game/g_admin.c
diff options
context:
space:
mode:
authorTheriaca <reichmeister@protonmail.com>2019-01-22 01:59:30 +0100
committerTheriaca <reichmeister@protonmail.com>2019-01-22 01:59:30 +0100
commit001b68a545797fd90505e523a1a4337e13f3b32c (patch)
tree798423069a22caab95d3eb6d182d48b9bafa5d58 /src/game/g_admin.c
parentbc4579cc888a13527a6f2013adea8d0c73257c18 (diff)
fix all compiler warnings from "stock" code
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;
}
}
}