Changeset - r26709:7c24c794d07a
[Not reviewed]
master
0 1 0
Loïc Guilloux - 18 months ago 2023-01-02 01:13:16
glx22@users.noreply.github.com
Fix #10304, fe30f66: [Scripts] Don't start GS in intro (#10305)
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/game/game_core.cpp
Show inline comments
 
@@ -70,12 +70,15 @@
 
}
 

	
 
/* static */ void Game::StartNew()
 
{
 
	if (Game::instance != nullptr) return;
 

	
 
	/* Don't start GameScripts in intro */
 
	if (_game_mode == GM_MENU) return;
 

	
 
	/* Clients shouldn't start GameScripts */
 
	if (_networking && !_network_server) return;
 

	
 
	GameConfig *config = GameConfig::GetConfig(GameConfig::SSS_FORCE_GAME);
 
	GameInfo *info = config->GetInfo();
 
	if (info == nullptr) return;
0 comments (0 inline, 0 general)