refuse to start the game unless required slots are full.
This commit is contained in:
@@ -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;
|
||||
}},
|
||||
|
||||
Reference in New Issue
Block a user