Skip to content

Commit 0b6f6d1

Browse files
committed
And finally, update status?
1 parent a02bbb3 commit 0b6f6d1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ZkLobbyServer/ServerBattle.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,6 +1135,15 @@ protected virtual async Task OnDedicatedExited(SpringBattleContext springBattleC
11351135
discussionTimer.Interval = (DiscussionSeconds - 1) * 1000;
11361136
discussionTimer.Start();
11371137
previousGamePlayers = springBattleContext.ActualPlayers.Select(x => x.Name).ToList();
1138+
foreach (var n in previousGamePlayers)
1139+
{
1140+
UserBattleStatus ubs;
1141+
if (Users.TryGetValue(n, out ubs))
1142+
{
1143+
ubs.QueueOrder = -1;
1144+
ValidateBattleStatus(ubs);
1145+
}
1146+
}
11381147
}
11391148
}
11401149
await CheckCloseBattle();

0 commit comments

Comments
 (0)