Skip to content

Commit 9afd069

Browse files
committed
Probably need to send the battle status after updating it.
Also add some orders of magnitude to queue offset.
1 parent acf3fa2 commit 9afd069

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ZkLobbyServer/ServerBattle.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,7 @@ public virtual void ValidateBattleStatus(UserBattleStatus ubs)
10641064
if (ubs.QueueOrder <= 0)
10651065
{
10661066
ubs.QueueOrder = ++QueueCounter;
1067-
if (IsInPreviousGame(ubs.Name)) ubs.QueueOrder += 1000;
1067+
if (IsInPreviousGame(ubs.Name)) ubs.QueueOrder += 100000;
10681068
}
10691069
}
10701070
else
@@ -1142,6 +1142,7 @@ protected virtual async Task OnDedicatedExited(SpringBattleContext springBattleC
11421142
{
11431143
ubs.QueueOrder = -1;
11441144
ValidateBattleStatus(ubs);
1145+
await server.Broadcast(Users.Keys, ubs.ToUpdateBattleStatus());
11451146
}
11461147
}
11471148
}

0 commit comments

Comments
 (0)