diff options
| author | oy <Tom_Adams@web.de> | 2010-09-12 12:51:07 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2010-09-12 12:51:07 +0200 |
| commit | 16657faf5588e36ed02c3865f27d3a5ce5a610ca (patch) | |
| tree | 70758d53d9932fceaa40eed0dc51a7723df14696 /src/game | |
| parent | e226b4721238c84600fe25dc4dd46cec16d1fa5d (diff) | |
| download | zcatch-16657faf5588e36ed02c3865f27d3a5ce5a610ca.tar.gz zcatch-16657faf5588e36ed02c3865f27d3a5ce5a610ca.zip | |
end vote on 50% no
Diffstat (limited to 'src/game')
| -rw-r--r-- | src/game/server/gamecontext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/server/gamecontext.cpp b/src/game/server/gamecontext.cpp index 9db02cea..a180e695 100644 --- a/src/game/server/gamecontext.cpp +++ b/src/game/server/gamecontext.cpp @@ -441,7 +441,7 @@ void CGameContext::OnTick() if(Yes >= Total/2+1) m_VoteEnforce = VOTE_ENFORCE_YES; - else if(No >= Total/2+1 || Yes+No == Total) + else if(No >= (Total+1)/2) m_VoteEnforce = VOTE_ENFORCE_NO; } |