From c09f67dfd649bd61811f827c677cc8de22fac1d6 Mon Sep 17 00:00:00 2001 From: Harry Young Date: Fri, 7 Dec 2012 00:15:45 +0100 Subject: [PATCH] Forgot to clean up some stuff Signed-off-by: Harry Young --- code/cgame/cg_draw.c | 3 +-- code/game/g_target.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/code/cgame/cg_draw.c b/code/cgame/cg_draw.c index cbc9b49..04282c8 100644 --- a/code/cgame/cg_draw.c +++ b/code/cgame/cg_draw.c @@ -1841,9 +1841,8 @@ static float CG_DrawSelfdestructTimer( void ) { int mins, tens, seconds, remainder; int msec; - cgs.selfdestructTime = 3654321; + //cgs.selfdestructTime = 60000; test value just to see if it works as intended msec = cgs.selfdestructTime - cg.time; - //msec = 0; if (msec < 0) return 0; diff --git a/code/game/g_target.c b/code/game/g_target.c index 742143f..fba2f80 100644 --- a/code/game/g_target.c +++ b/code/game/g_target.c @@ -2742,7 +2742,6 @@ void target_selfdestruct_use(gentity_t *ent, gentity_t *other, gentity_t *activa void target_selfdestruct_think(gentity_t *ent) { gentity_t* client; gentity_t *healthEnt, *safezone=NULL; - double ETAmin, ETAsec, temp = 0.0f; int i = 0; //this is for calling the safezones to list. It needs to stand here to not screw up the remainder of the think. @@ -2760,7 +2759,7 @@ void target_selfdestruct_think(gentity_t *ent) { if (ent->wait > 0){ //Send a sznc/signal to all clients - G_AddEvent( ent, EV_SELFDESTRUCT_SETTER, ( ent->damage - level.time ); + G_AddEvent( ent, EV_SELFDESTRUCT_SETTER, ( ent->damage - level.time )); ent->nextthink = level.time + 10000; //fail horribly if we overshoot bang-time