Parcourir la source

Load map by itself

nordsoft il y a 3 ans
Parent
commit
0eb589fb58
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      client/NetPacksLobbyClient.cpp

+ 2 - 2
client/NetPacksLobbyClient.cpp

@@ -105,13 +105,13 @@ bool LobbyStartGame::applyOnLobbyHandler(CServerHandler * handler)
 		handler->si = initializedStartInfo;
 	}
 	if(settings["session"]["headless"].Bool())
-		handler->startGameplay();
+		handler->startGameplay(initializedGameState);
 	return true;
 }
 
 void LobbyStartGame::applyOnLobbyScreen(CLobbyScreen * lobby, CServerHandler * handler)
 {
-	GH.pushIntT<CLoadingScreen>(std::bind(&CServerHandler::startGameplay, handler, nullptr));
+	GH.pushIntT<CLoadingScreen>(std::bind(&CServerHandler::startGameplay, handler, initializedGameState));
 }
 
 bool LobbyUpdateState::applyOnLobbyHandler(CServerHandler * handler)