summaryrefslogtreecommitdiff
path: root/src/table/gameopt_settings.ini
diff options
context:
space:
mode:
Diffstat (limited to 'src/table/gameopt_settings.ini')
-rw-r--r--src/table/gameopt_settings.ini9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/table/gameopt_settings.ini b/src/table/gameopt_settings.ini
index 10373c965..968191f12 100644
--- a/src/table/gameopt_settings.ini
+++ b/src/table/gameopt_settings.ini
@@ -9,6 +9,7 @@
[pre-amble]
static const uint GAME_DIFFICULTY_NUM = 18;
static uint16 _old_diff_custom[GAME_DIFFICULTY_NUM];
+uint8 _old_diff_level; ///< Old difficulty level from old savegames
/* Most of these strings are used both for gameopt-backward compatability
* and the settings tables. The rest is here for consistency. */
@@ -39,6 +40,7 @@ static const SettingDesc _gameopt_settings[] = {
};
[templates]
SDTG_GENERAL = SDTG_GENERAL($name, $sdt_cmd, $sle_cmd, $type, $flags, $guiflags, $var, $length, $def, $min, $max, $interval, $full, $str, $strhelp, $strval, $proc, $from, $to, $cat),
+SDTG_VAR = SDTG_VAR($name, $type, $flags, $guiflags, $var, $def, $min, $max, $interval, $str, $strhelp, $strval, $proc, $from, $to, $cat),
SDT_NULL = SDT_NULL($length, $from, $to),
SDTC_OMANY = SDTC_OMANY( $var, $type, $flags, $guiflags, $def, $max, $full, $str, $strhelp, $strval, $proc, $from, $to, $cat),
SDT_OMANY = SDT_OMANY($base, $var, $type, $flags, $guiflags, $def, $max, $full, $str, $strhelp, $strval, $proc, $from, $to, $load, $cat),
@@ -89,10 +91,11 @@ full = NULL
from = 4
##
-[SDT_VAR]
-base = GameSettings
-var = difficulty.diff_level
+[SDTG_VAR]
+name = ""diff_level""
+var = _old_diff_level
type = SLE_UINT8
+flags = SLF_NOT_IN_CONFIG
def = SP_CUSTOM
min = SP_EASY
max = SP_CUSTOM