Reset slot configuration when all players leave a dedicated server.

This commit is contained in:
Paul Chote
2016-12-08 20:56:13 +00:00
parent 7827d50e99
commit 1153cd2f7c
3 changed files with 20 additions and 4 deletions

View File

@@ -590,8 +590,10 @@ namespace OpenRA.Server
DispatchOrders(toDrop, frame, new byte[] { 0xbf });
// All clients have left: clean up
if (!Conns.Any())
TempBans.Clear();
foreach (var t in serverTraits.WithInterface<INotifyServerEmpty>())
t.ServerEmpty(this);
if (Conns.Any() || Dedicated)
SyncLobbyClients();