Save disconnect frame in the GameInformation
This information is useful to infer a winner in case the winstate is unknown.
This commit is contained in:
@@ -39,7 +39,13 @@ namespace OpenRA.Network
|
||||
{
|
||||
var client = orderManager.LobbyInfo.ClientWithIndex(clientId);
|
||||
if (client != null)
|
||||
{
|
||||
client.State = Session.ClientState.Disconnected;
|
||||
var player = world?.FindPlayerByClient(client);
|
||||
if (player != null)
|
||||
world.OnPlayerDisconnected(player);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user