mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-17 01:12:39 +01:00
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
{
|
||||
assert(company < MAX_COMPANIES);
|
||||
|
||||
if (_game_mode == GM_MENU) source = SSS_FORCE_NEWGAME;
|
||||
if (source == SSS_DEFAULT && _game_mode == GM_MENU) source = SSS_FORCE_NEWGAME;
|
||||
|
||||
if (source == SSS_DEFAULT) {
|
||||
Company *c = Company::GetIfValid(company);
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
/* static */ GameConfig *GameConfig::GetConfig(ScriptSettingSource source)
|
||||
{
|
||||
if (_game_mode == GM_MENU) source = SSS_FORCE_NEWGAME;
|
||||
if (source == SSS_DEFAULT && _game_mode == GM_MENU) source = SSS_FORCE_NEWGAME;
|
||||
|
||||
auto &config = (source == SSS_FORCE_NEWGAME) ? _settings_newgame.script_config.game : _settings_game.script_config.game;
|
||||
if (config == nullptr) config = std::make_unique<GameConfig>();
|
||||
|
||||
Reference in New Issue
Block a user