Changes to allow restarting of skirmish match

This commit is contained in:
Whinis
2016-01-16 17:09:30 -05:00
parent 1df728adad
commit f2260174f0
4 changed files with 52 additions and 16 deletions

View File

@@ -889,6 +889,28 @@ namespace OpenRA.Mods.Common.Server
return true;
}
},
{ "sync_lobby",
s =>
{
if (!client.IsAdmin)
{
server.SendOrderTo(conn, "Message", "Only the host can set lobby info");
return true;
}
var lobbyInfo = Session.Deserialize(s);
if (lobbyInfo == null)
{
server.SendOrderTo(conn, "Message", "Invalid Lobby Info Sent");
return true;
}
server.LobbyInfo = lobbyInfo;
server.SyncLobbyInfo();
return true;
}
}
};