Skip to content

Commit b291a3e

Browse files
authored
Merge pull request #3014 from ZeroK-RTS/master
Probably need to send the battle status after updating it.
2 parents 0ffd944 + 9afd069 commit b291a3e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)