corrected voting limits

This commit is contained in:
Magnus Auvinen 2008-09-25 12:43:02 +00:00
parent d2d4024c7a
commit f96be4eb0e

View file

@ -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");