r3359 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Tue Feb 12 11:36:10 EST 2008
Author: div0
Date: 2008-02-12 11:36:10 -0500 (Tue, 12 Feb 2008)
New Revision: 3359
Modified:
trunk/data/qcsrc/server/clientcommands.qc
Log:
fix minor bug in VoteSpam
Modified: trunk/data/qcsrc/server/clientcommands.qc
===================================================================
--- trunk/data/qcsrc/server/clientcommands.qc 2008-02-12 16:28:56 UTC (rev 3358)
+++ trunk/data/qcsrc/server/clientcommands.qc 2008-02-12 16:36:10 UTC (rev 3359)
@@ -770,16 +770,21 @@
}
else if(time > votefinished)
{
- VoteSpam(yescount, nocount, abstaincount, playercount - yescount - nocount - abstaincount, floor((yescount + nocount) * votefactor) + 1);
if(cvar("sv_vote_simple_majority"))
+ {
+ VoteSpam(yescount, nocount, abstaincount, playercount - yescount - nocount - abstaincount, floor((yescount + nocount) * votefactor) + 1);
if(yescount > (yescount + nocount) * votefactor)
VoteAccept();
else if(yescount + nocount > 0)
VoteReject();
else
VoteTimeout();
+ }
else
+ {
+ VoteSpam(yescount, nocount, abstaincount, playercount - yescount - nocount - abstaincount, floor((playercount - abstaincount) * votefactor) + 1);
VoteTimeout();
+ }
}
}
}
More information about the nexuiz-commits
mailing list