Merge branch 'master' into jgrpp
# Conflicts: # .github/workflows/ci-build.yml # .github/workflows/commit-checker.yml # src/openttd.cpp
This commit is contained in:
@@ -2198,6 +2198,8 @@ CommandCost CmdChangeSetting(TileIndex tile, DoCommandFlag flags, uint32 p1, uin
|
||||
}
|
||||
|
||||
SetWindowClassesDirty(WC_GAME_OPTIONS);
|
||||
|
||||
if (_save_config) SaveToConfig();
|
||||
}
|
||||
|
||||
return CommandCost();
|
||||
@@ -2268,12 +2270,15 @@ bool SetSettingValue(uint index, int32 value, bool force_newgame)
|
||||
|
||||
SetWindowClassesDirty(WC_GAME_OPTIONS);
|
||||
|
||||
if (_save_config) SaveToConfig();
|
||||
return true;
|
||||
}
|
||||
|
||||
if (force_newgame && !no_newgame) {
|
||||
void *var2 = GetVariableAddress(&_settings_newgame, &sd->save);
|
||||
Write_ValidateSetting(var2, sd, value);
|
||||
|
||||
if (_save_config) SaveToConfig();
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -2367,6 +2372,7 @@ bool SetSettingValue(uint index, const char *value, bool force_newgame)
|
||||
}
|
||||
if (sd->desc.proc != nullptr) sd->desc.proc(0);
|
||||
|
||||
if (_save_config) SaveToConfig();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user