about summary refs log tree commit diff
path: root/src/game
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2008-09-25 12:43:02 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2008-09-25 12:43:02 +0000
commitf96be4eb0ed4430013c8ecfcb043c049d5103479 (patch)
treed7dd5e552252981d4e0a943871c6eec19155eb23 /src/game
parentd2d4024c7acffb2318ed0fac788f707c291154e1 (diff)
downloadzcatch-f96be4eb0ed4430013c8ecfcb043c049d5103479.tar.gz
zcatch-f96be4eb0ed4430013c8ecfcb043c049d5103479.zip
corrected voting limits
Diffstat (limited to 'src/game')
-rw-r--r--src/game/server/gamecontext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp
index 0a79004d..d5e5c19d 100644
--- a/src/game/server/gamecontext.cpp
+++ b/src/game/server/gamecontext.cpp
@@ -316,13 +316,13 @@ void GAMECONTEXT::tick()
 			}
 		}
 		
-		if(yes >= (total+1)/2)
+		if(yes >= total/2+1)
 		{
 			console_execute_line(vote_command);
 			end_vote();
 			send_chat(-1, GAMECONTEXT::CHAT_ALL, "Vote passed");
 		}
-		else if(time_get() > vote_closetime || no >= (total+1)/2)
+		else if(time_get() > vote_closetime || no >= total/2+1)
 		{
 			end_vote();
 			send_chat(-1, GAMECONTEXT::CHAT_ALL, "Vote failed");