From 001b68a545797fd90505e523a1a4337e13f3b32c Mon Sep 17 00:00:00 2001 From: Theriaca Date: Tue, 22 Jan 2019 01:59:30 +0100 Subject: fix all compiler warnings from "stock" code --- src/game/g_admin.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'src/game/g_admin.c') 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; } } } -- cgit