diff options
author | SamuXarick <43006711+SamuXarick@users.noreply.github.com> | 2020-12-27 14:05:47 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-27 15:05:47 +0100 |
commit | dc5b8020ccd41053f440371ccaa290ca7a2632b9 (patch) | |
tree | f150eeb411e5acd00d0ccf3217de06dbc145896b /src/script/script_config.hpp | |
parent | b408fe77f792650ef569f9852165759f960fd52f (diff) | |
download | openttd-dc5b8020ccd41053f440371ccaa290ca7a2632b9.tar.xz |
Fix #6452: Reset only editable and visible settings from GUI (#7890)
Also enables the Reset button while in-game for AI configs.
Diffstat (limited to 'src/script/script_config.hpp')
-rw-r--r-- | src/script/script_config.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/script/script_config.hpp b/src/script/script_config.hpp index 31004caba..be231fcdc 100644 --- a/src/script/script_config.hpp +++ b/src/script/script_config.hpp @@ -135,6 +135,11 @@ public: void ResetSettings(); /** + * Reset only editable and visible settings to their default value. + */ + void ResetEditableSettings(bool yet_to_start); + + /** * Randomize all settings the Script requested to be randomized. */ virtual void AddRandomDeviation(); |