fix validation of startgame order

This commit is contained in:
Chris Forbes
2013-05-18 15:58:16 +12:00
parent 96ecb7c232
commit 4d85605cca

View File

@@ -91,6 +91,12 @@ namespace OpenRA.Mods.RA.Server
{ "startgame",
s =>
{
if (!client.IsAdmin)
{
server.SendOrderTo(conn, "Message", "Only the host can start the game");
return true;
}
if (server.lobbyInfo.Slots.Any(sl => sl.Value.Required &&
server.lobbyInfo.ClientInSlot(sl.Key) == null))
{