diff options
author | rubidium <rubidium@openttd.org> | 2008-12-23 21:03:43 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-12-23 21:03:43 +0000 |
commit | e6ff168508515ba4bf130106f100654d65685fd2 (patch) | |
tree | 13bdd9c673e98449442640715abe78de2b568a5e /src/settings.cpp | |
parent | 2b5362de131afa3cca4d4139096f1b92d268bd4d (diff) | |
download | openttd-e6ff168508515ba4bf130106f100654d65685fd2.tar.xz |
(svn r14732) -Codechange: replace some magic number with less magic constants and use the proper type for a few variables.
Diffstat (limited to 'src/settings.cpp')
-rw-r--r-- | src/settings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index 4fe78d398..0636d0f52 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -1234,7 +1234,7 @@ const SettingDesc _patch_settings[] = { /***************************************************************************/ /* Saved patch variables. */ /* Do not ADD or REMOVE something in this "difficulty.XXX" table or before it. It breaks savegame compatability. */ - SDT_CONDVAR(GameSettings, difficulty.max_no_competitors, SLE_UINT8, 97, SL_MAX_VERSION, 0, 0, 2, 0, 7, 1, STR_NULL, DifficultyChange), + SDT_CONDVAR(GameSettings, difficulty.max_no_competitors, SLE_UINT8, 97, SL_MAX_VERSION, 0, 0, 2,0,MAX_COMPANIES-1,1,STR_NULL, DifficultyChange), SDT_CONDVAR(GameSettings, difficulty.competitor_start_time, SLE_UINT8, 97, SL_MAX_VERSION, 0,NG, 2, 0, 3, 1, STR_6830_IMMEDIATE, DifficultyChange), SDT_CONDVAR(GameSettings, difficulty.number_towns, SLE_UINT8, 97, SL_MAX_VERSION, 0,NG, 2, 0, 3, 1, STR_NUM_VERY_LOW, DifficultyChange), SDT_CONDVAR(GameSettings, difficulty.number_industries, SLE_UINT8, 97, SL_MAX_VERSION, 0,NG, 4, 0, 4, 1, STR_NONE, DifficultyChange), |