Merge pull request #12459 from pchote/fix-server-exploit

Reset server slots and reenable spectators when the last player quits.
This commit is contained in:
Oliver Brakmann
2016-12-09 21:34:50 +01:00
committed by GitHub
3 changed files with 20 additions and 4 deletions

View File

@@ -586,8 +586,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();