[nexuiz-commits] r6136 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Fri Mar 13 08:50:50 EDT 2009
Author: div0
Date: 2009-03-13 08:50:50 -0400 (Fri, 13 Mar 2009)
New Revision: 6136
Modified:
trunk/data/qcsrc/server/g_world.qc
Log:
abort the vote if there was just 1 choice anyway
Modified: trunk/data/qcsrc/server/g_world.qc
===================================================================
--- trunk/data/qcsrc/server/g_world.qc 2009-03-13 12:28:03 UTC (rev 6135)
+++ trunk/data/qcsrc/server/g_world.qc 2009-03-13 12:50:50 UTC (rev 6136)
@@ -2266,6 +2266,9 @@
float mapvote_voters_real;
string result;
+ if(mapvote_count_real == 1)
+ return MapVote_Finished(0);
+
mapvote_voters_real = mapvote_voters;
if(mapvote_abstain)
mapvote_voters_real -= mapvote_votes[mapvote_count - 1];
More information about the nexuiz-commits
mailing list