summaryrefslogtreecommitdiff
path: root/src/game/g_active.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2005-08-06 20:50:58 +0000
committerTim Angus <tim@ngus.net>2005-08-06 20:50:58 +0000
commitc4450fa7212fb210590430e17962c686eba38e32 (patch)
treeeac1cbf75f7360215a783aed1269ea14f0215e94 /src/game/g_active.c
parent1d4f4cc270bad932a1f95739bf719a644052e1e6 (diff)
* Free frags are no longer awarded after the sudden death time
Diffstat (limited to 'src/game/g_active.c')
-rw-r--r--src/game/g_active.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/game/g_active.c b/src/game/g_active.c
index 93ae76f0..e3f09d69 100644
--- a/src/game/g_active.c
+++ b/src/game/g_active.c
@@ -1332,7 +1332,12 @@ void ClientThink_real( gentity_t *ent )
// Give clients some credit periodically
if( ent->client->lastKillTime + FREEKILL_PERIOD < level.time )
{
- if( ent->client->ps.stats[ STAT_PTEAM ] == PTE_ALIENS )
+ if( g_suddenDeathTime.integer &&
+ ( level.time - level.startTime >= g_suddenDeathTime.integer * 60000 ) )
+ {
+ //gotta love logic like this eh?
+ }
+ else if( ent->client->ps.stats[ STAT_PTEAM ] == PTE_ALIENS )
G_AddCreditToClient( ent->client, FREEKILL_ALIEN, qtrue );
else if( ent->client->ps.stats[ STAT_PTEAM ] == PTE_HUMANS )
G_AddCreditToClient( ent->client, FREEKILL_HUMAN, qtrue );