Server ignores kick votes if the client has already voted to kick the same player. Closes #615

This commit is contained in:
Joonas Rikkonen
2018-08-11 17:29:03 +03:00
parent d98de2c305
commit 091dcf35e6
2 changed files with 6 additions and 1 deletions
@@ -211,6 +211,11 @@ namespace Barotrauma.Networking
{
kickVoters.Remove(voter);
}
public bool HasKickVoteFrom(Client voter)
{
return kickVoters.Contains(voter);
}
public bool HasKickVoteFromID(int id)
{