Voting bugfixes
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user