Skip to content

Commit 52a98d1

Browse files
committed
fix size limit not being enforced
I thought I had this tested :|
1 parent 65a0507 commit 52a98d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ZkLobbyServer/ServerBattle.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ public virtual void ValidateBattleStatus(UserBattleStatus ubs)
628628

629629
if (!ubs.IsSpectator)
630630
{
631-
if (Users.Values.Count(x => !x.IsSpectator) >= MaxPlayers && !Users.Values.Any(x => !x.IsSpectator && x.Name == ubs.LobbyUser.Name)) {
631+
if (Users.Values.Count(x => !x.IsSpectator) > MaxPlayers) {
632632
ubs.IsSpectator = true;
633633
SayBattle("This battle is full.", ubs.Name);
634634
}

0 commit comments

Comments
 (0)