mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
corrected voting limits
This commit is contained in:
parent
d2d4024c7a
commit
f96be4eb0e
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue