summaryrefslogtreecommitdiff
path: root/src/settings.cpp
diff options
context:
space:
mode:
authorPeter Nelson <peter1138@openttd.org>2019-01-26 01:48:40 +0000
committerPeterN <peter@fuzzle.org>2019-02-02 21:39:06 +0000
commit9de12521ecec338160c37920e65fd02c0c742bef (patch)
tree66f41585907f29ddbe22bb340c34bd23bffa58bd /src/settings.cpp
parentea4ea628163c735db4c4714966c9bc1c560e0f61 (diff)
downloadopenttd-9de12521ecec338160c37920e65fd02c0c742bef.tar.xz
Codechange: Convert saveload numbers to enum values.
(This was mostly achieved with a few in-place regexes)
Diffstat (limited to 'src/settings.cpp')
-rw-r--r--src/settings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index d16cff7a1..41d3e2809 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -1377,7 +1377,7 @@ static void PrepareOldDiffCustom()
*/
static void HandleOldDiffCustom(bool savegame)
{
- uint options_to_load = GAME_DIFFICULTY_NUM - ((savegame && IsSavegameVersionBefore(4)) ? 1 : 0);
+ uint options_to_load = GAME_DIFFICULTY_NUM - ((savegame && IsSavegameVersionBefore(SLV_4)) ? 1 : 0);
if (!savegame) {
/* If we did read to old_diff_custom, then at least one value must be non 0. */