Voting bugfixes

This commit is contained in:
Regalis
2016-02-12 23:41:28 +02:00
parent c6f52cc68f
commit 1506738ff7
9 changed files with 41 additions and 12 deletions

View File

@@ -474,7 +474,8 @@ namespace Barotrauma.Networking
case (byte)PacketTypes.Vote:
Voting.RegisterVote(inc, ConnectedClients);
if (Voting.AllowEndVoting &&
if (Voting.AllowEndVoting && EndVoteMax > 0 &&
((float)EndVoteCount / (float)EndVoteMax) >= EndVoteRequiredRatio)
{
EndButtonHit(null,null);