diff options
author | M. Kristall <mkpdev@gmail.com> | 2009-10-21 09:46:22 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:16:58 +0000 |
commit | 933bc9744a0eabbcd220b5e302464e60aa1a0b83 (patch) | |
tree | f27b045181eaf1b2b1e4ee9a64563e259eb07485 | |
parent | 7ebef7d524d3ef50d35e14a57096ef51d41bd134 (diff) |
* 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
-rw-r--r-- | src/game/g_cmds.c | 4 |
1 files 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; |