Reset lobby ready state when options change server side.

This commit is contained in:
Matthias Mailänder
2020-09-06 14:03:46 +02:00
committed by abcdefg30
parent 2e438f1da9
commit 930f8ab207
2 changed files with 5 additions and 3 deletions

View File

@@ -295,10 +295,7 @@ namespace OpenRA.Network
{
var strings = node.Key.Split('@');
if (strings[0] == "GlobalSettings")
{
orderManager.LobbyInfo.GlobalSettings = Session.Global.Deserialize(node.Value);
orderManager.IssueOrder(Order.Command("state {0}".F(Session.ClientState.NotReady)));
}
}
SetOrderLag(orderManager);

View File

@@ -523,6 +523,11 @@ namespace OpenRA.Mods.Common.Server
server.SyncLobbyGlobalSettings();
server.SendMessage(option.ValueChangedMessage(client.Name, split[1]));
foreach (var c in server.LobbyInfo.Clients)
c.State = Session.ClientState.NotReady;
server.SyncLobbyClients();
return true;
}