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:
@@ -552,6 +552,15 @@ namespace OpenRA
|
||||
}
|
||||
}
|
||||
|
||||
public void OnPlayerDisconnected(Player player)
|
||||
{
|
||||
var pi = gameInfo.GetPlayer(player);
|
||||
if (pi == null)
|
||||
return;
|
||||
|
||||
pi.DisconnectFrame = OrderManager.NetFrameNumber;
|
||||
}
|
||||
|
||||
public void RequestGameSave(string filename)
|
||||
{
|
||||
// Allow traits to save arbitrary data that will be passed back via IGameSaveTraitData.ResolveTraitData
|
||||
|
||||
Reference in New Issue
Block a user