whoops i write bad code
This commit is contained in:
parent
dad44ef0cf
commit
586098b3cf
3 changed files with 4 additions and 6 deletions
|
@ -186,11 +186,8 @@ public static class PlayerProperties {
|
|||
|
||||
if (players.Count < 2) return false;
|
||||
|
||||
var hashset = new HashSet<int>();
|
||||
foreach(var p in players){
|
||||
var pid = playerCharacter.Get(p);
|
||||
if (pid == -1) return false;
|
||||
if (!hashset.Add(pid)) return false;
|
||||
if (!lobbyStatus.Get(p)) return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue