Do not abort network round due to insufficient player count in editor mode

qteditor
Sven Eberhardt 2016-08-06 15:45:56 -04:00
parent 5cbbd0d05b
commit 1c90f9b2da
1 changed files with 1 additions and 1 deletions

View File

@ -765,7 +765,7 @@ namespace C4GameLobby
if (!iStartTimer)
{
// Dedicated server: if there are not enough players for this game, abort and quit the application
if (!::Network.GetLobby() && (Game.PlayerInfos.GetPlayerCount() < Game.C4S.GetMinPlayer()))
if (!::Network.GetLobby() && (Game.PlayerInfos.GetPlayerCount() < Game.C4S.GetMinPlayer()) && !Application.isEditor)
{
Log(LoadResStr("IDS_MSG_NOTENOUGHPLAYERSFORTHISRO")); // it would also be nice to send this message to all clients...
Application.Quit();