refuse to start the game unless required slots are full.

This commit is contained in:
Chris Forbes
2012-09-16 11:04:03 +12:00
parent eb9b6a3842
commit f8427fa242

View File

@@ -91,6 +91,12 @@ namespace OpenRA.Mods.RA.Server
{ "startgame",
s =>
{
if (server.lobbyInfo.Slots.Any(sl => sl.Value.Required &&
server.lobbyInfo.ClientInSlot(sl.Key) == null))
{
server.SendChat(conn, "Unable to start the game until required slots are full.");
return true;
}
server.StartGame();
return true;
}},