Clean up ClientPings when a player drops from the server.

This commit is contained in:
Paul Chote
2016-09-20 21:13:07 +01:00
committed by Oliver Brakmann
parent a7251b7e95
commit 60244d4910

View File

@@ -568,6 +568,7 @@ namespace OpenRA.Server
DispatchOrdersToClients(toDrop, 0, new ServerOrder("Disconnected", "").Serialize());
LobbyInfo.Clients.RemoveAll(c => c.Index == toDrop.PlayerIndex);
LobbyInfo.ClientPings.RemoveAll(p => p.Index == toDrop.PlayerIndex);
// Client was the server admin
// TODO: Reassign admin for game in progress via an order