Reset default state when a dedicated server clears.

This commit is contained in:
Paul Chote
2013-08-04 12:06:47 +12:00
parent 40533918f3
commit d867e8200f
5 changed files with 19 additions and 0 deletions

View File

@@ -527,7 +527,10 @@ namespace OpenRA.Server
DispatchOrders(toDrop, toDrop.MostRecentFrame, new byte[] {0xbf});
if (!conns.Any())
{
FieldLoader.Load(lobbyInfo.GlobalSettings, ModData.Manifest.LobbyDefaults);
TempBans.Clear();
}
if (conns.Any() || lobbyInfo.GlobalSettings.Dedicated)
SyncLobbyInfo();