From 933bc9744a0eabbcd220b5e302464e60aa1a0b83 Mon Sep 17 00:00:00 2001 From: "M. Kristall" Date: Wed, 21 Oct 2009 09:46:22 +0000 Subject: * Fix a couple typos in sudden death votes, including one that allowed a second (and third and fourth...) sudden death vote to be called after one had already passed --- src/game/g_cmds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index 8ed19769..4ad07392 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -1219,11 +1219,11 @@ void Cmd_CallVote_f( gentity_t *ent ) va( "print \"callvote: Sudden Death has already begun\n\"") ); return; } - if( g_suddenDeathTime.integer > 0 && + if( level.suddenDeathBeginTime > 0 && G_TimeTilSuddenDeath() <= g_suddenDeathVoteDelay.integer * 1000 ) { trap_SendServerCommand( ent - g_entities, - va( "print \"callvote: Sudden Death is already immenent\n\"") ); + va( "print \"callvote: Sudden Death is imminent\n\"") ); return; } level.voteThreshold[ team ] = g_suddenDeathVotePercent.integer; -- cgit