summaryrefslogtreecommitdiff
path: root/src/table
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-06-20 11:25:39 +0000
committersmatz <smatz@openttd.org>2009-06-20 11:25:39 +0000
commit4419366f94f75032b53362e2722b6476beb02866 (patch)
tree2d092dc3dc2fea7055ac87bc739b223a83efbeb5 /src/table
parent88ec646c1f843b95635510988c793e4e83cbc8cc (diff)
downloadopenttd-4419366f94f75032b53362e2722b6476beb02866.tar.xz
(svn r16603) -Codechange: enumify map size limits (based on a patch by Bilbo)
Diffstat (limited to 'src/table')
-rw-r--r--src/table/settings.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/table/settings.h b/src/table/settings.h
index 4d557b74e..d208d7646 100644
--- a/src/table/settings.h
+++ b/src/table/settings.h
@@ -500,8 +500,8 @@ const SettingDesc _settings[] = {
SDT_VAR(GameSettings, game_creation.heightmap_rotation, SLE_UINT8, S,MS, 0, 0, 1, 0, STR_CONFIG_SETTING_HEIGHTMAP_ROTATION, NULL),
SDT_VAR(GameSettings, game_creation.se_flat_world_height, SLE_UINT8, S, 0, 1, 0, 15, 0, STR_CONFIG_SETTING_SE_FLAT_WORLD_HEIGHT, NULL),
- SDT_VAR(GameSettings, game_creation.map_x, SLE_UINT8, S, 0, 8, 6, 11, 0, STR_CONFIG_SETTING_MAP_X, NULL),
- SDT_VAR(GameSettings, game_creation.map_y, SLE_UINT8, S, 0, 8, 6, 11, 0, STR_CONFIG_SETTING_MAP_Y, NULL),
+ SDT_VAR(GameSettings, game_creation.map_x, SLE_UINT8, S, 0, 8, MIN_MAP_SIZE_BITS, MAX_MAP_SIZE_BITS, 0, STR_CONFIG_SETTING_MAP_X, NULL),
+ SDT_VAR(GameSettings, game_creation.map_y, SLE_UINT8, S, 0, 8, MIN_MAP_SIZE_BITS, MAX_MAP_SIZE_BITS, 0, STR_CONFIG_SETTING_MAP_Y, NULL),
SDT_CONDBOOL(GameSettings, construction.freeform_edges, 111, SL_MAX_VERSION, 0, 0, true, STR_CONFIG_SETTING_ENABLE_FREEFORM_EDGES, CheckFreeformEdges),
SDT_CONDVAR(GameSettings, game_creation.water_borders, SLE_UINT8,111, SL_MAX_VERSION, 0, 0, 15, 0, 16, 0, STR_NULL, NULL),
SDT_CONDVAR(GameSettings, game_creation.custom_town_number, SLE_UINT16,115, SL_MAX_VERSION, 0, 0, 1, 1, 5000, 0, STR_NULL, NULL),