diff options
author | rubidium42 <rubidium@openttd.org> | 2021-05-24 11:47:37 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-05-29 10:07:30 +0200 |
commit | 08308d808c2ab3a6621762127eed6c46f16286c6 (patch) | |
tree | 1b0cc66d3169b27d8adf345e4304fe7c030e7ffb /src/newgrf_config.cpp | |
parent | e2f5d9e561b70aec85d67b4eea822ba49f0c20bf (diff) | |
download | openttd-08308d808c2ab3a6621762127eed6c46f16286c6.tar.xz |
Codechange: use separate pre and post callbacks for int settings
Diffstat (limited to 'src/newgrf_config.cpp')
-rw-r--r-- | src/newgrf_config.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/newgrf_config.cpp b/src/newgrf_config.cpp index b92b297da..044d36193 100644 --- a/src/newgrf_config.cpp +++ b/src/newgrf_config.cpp @@ -282,15 +282,13 @@ void GRFParameterInfo::Finalize() /** * Update the palettes of the graphics from the config file. * Called when changing the default palette in advanced settings. - * @param p1 Unused. - * @return Always true. + * @param new_value Unused. */ -bool UpdateNewGRFConfigPalette(int32 p1) +void UpdateNewGRFConfigPalette(int32 new_value) { for (GRFConfig *c = _grfconfig_newgame; c != nullptr; c = c->next) c->SetSuitablePalette(); for (GRFConfig *c = _grfconfig_static; c != nullptr; c = c->next) c->SetSuitablePalette(); for (GRFConfig *c = _all_grfs; c != nullptr; c = c->next) c->SetSuitablePalette(); - return true; } /** |