From a499435351fcb7b25e1e49e1366ebeac91636c35 Mon Sep 17 00:00:00 2001 From: frosch Date: Wed, 5 Dec 2012 19:34:45 +0000 Subject: (svn r24786) -Codechange: Add SettingsProfile enum for difficulty profiles and highscore tables. --- src/ai/ai_gui.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/ai/ai_gui.cpp') diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp index 52d5ffd0a..f287442fc 100644 --- a/src/ai/ai_gui.cpp +++ b/src/ai/ai_gui.cpp @@ -422,12 +422,12 @@ struct AISettingsWindow : public Window { void CheckDifficultyLevel() { if (_game_mode == GM_MENU) { - if (_settings_newgame.difficulty.diff_level != 3) { - _settings_newgame.difficulty.diff_level = 3; + if (_settings_newgame.difficulty.diff_level != SP_CUSTOM) { + _settings_newgame.difficulty.diff_level = SP_CUSTOM; ShowErrorMessage(STR_WARNING_DIFFICULTY_TO_CUSTOM, INVALID_STRING_ID, WL_WARNING); } - } else if (_settings_game.difficulty.diff_level != 3) { - IConsoleSetSetting("difficulty.diff_level", 3); + } else if (_settings_game.difficulty.diff_level != SP_CUSTOM) { + IConsoleSetSetting("difficulty.diff_level", SP_CUSTOM); } } -- cgit v1.2.3-54-g00ecf