Merge pull request #4095 from pchote/bogus-replay-fix

SyncInfo is only valid during the initial lobby phase. Fixes #3973.
This commit is contained in:
Matthias Mailänder
2013-11-09 00:55:26 -08:00

View File

@@ -558,7 +558,7 @@ namespace OpenRA.Server
public void SyncLobbyInfo() public void SyncLobbyInfo()
{ {
if (State != ServerState.GameStarted) /* don't do this while the game is running, it breaks things. */ if (State == ServerState.WaitingPlayers) // Don't do this while the game is running, it breaks things!
DispatchOrders(null, 0, DispatchOrders(null, 0,
new ServerOrder("SyncInfo", lobbyInfo.Serialize()).Serialize()); new ServerOrder("SyncInfo", lobbyInfo.Serialize()).Serialize());