[nexuiz-commits] r6473 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Fri Apr 10 17:29:04 EDT 2009
Author: div0
Date: 2009-04-10 17:29:03 -0400 (Fri, 10 Apr 2009)
New Revision: 6473
Modified:
trunk/data/qcsrc/server/vote.qc
Log:
fix the "needed" number
Modified: trunk/data/qcsrc/server/vote.qc
===================================================================
--- trunk/data/qcsrc/server/vote.qc 2009-04-10 21:23:36 UTC (rev 6472)
+++ trunk/data/qcsrc/server/vote.qc 2009-04-10 21:29:03 UTC (rev 6473)
@@ -622,7 +622,7 @@
result = "no";
else
result = "timeout";
- VoteSpam(yescount, nocount, abstaincount, playercount - yescount - nocount - abstaincount, floor((yescount + nocount) * votefactor) + 1, result);
+ VoteSpam(yescount, nocount, abstaincount, playercount - yescount - nocount - abstaincount, floor(min((playercount - abstaincount) * votefactor, (yescount + nocount) * simplevotefactor)) + 1, result);
if(result == "yes")
VoteAccept();
else if(result == "no")
More information about the nexuiz-commits
mailing list