summaryrefslogtreecommitdiff
path: root/src/settings.cpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-02-21 02:34:53 +0000
committeryexo <yexo@openttd.org>2009-02-21 02:34:53 +0000
commitc3c549f73105b88cf728744587821721a9e45c0f (patch)
treef078747297abae0d4c76406a0b8e0d6b37a2a9c5 /src/settings.cpp
parent13bc604fde0f4d3f3620809507cfe045c1b96b4b (diff)
downloadopenttd-c3c549f73105b88cf728744587821721a9e45c0f.tar.xz
(svn r15538) -Fix (r15334): The difficulty level wasn't set to custom when changing the amount of towns/industries from the newgame gui.
Diffstat (limited to 'src/settings.cpp')
-rw-r--r--src/settings.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index 0dc48cfc8..ecfc3403c 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -1009,7 +1009,10 @@ static bool DifficultyReset(int32 level)
static bool DifficultyChange(int32)
{
if (_game_mode == GM_MENU) {
- _settings_newgame.difficulty.diff_level = 3;
+ if (_settings_newgame.difficulty.diff_level != 3) {
+ ShowErrorMessage(INVALID_STRING_ID, STR_DIFFICULTY_TO_CUSTOM, 0, 0);
+ _settings_newgame.difficulty.diff_level = 3;
+ }
} else {
_settings_game.difficulty.diff_level = 3;
}