From 93771e6e5890c313eff5f4155d5e84b1bfdd5e71 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 6 Nov 2018 10:57:16 +0100 Subject: enable the lowest 4 layers, too --- src/lang/english.txt | 4 ++++ src/lang/russian.txt | 4 ++++ src/layer.cpp | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/lang/english.txt b/src/lang/english.txt index 82a8c3a5e..d38c5c154 100644 --- a/src/lang/english.txt +++ b/src/lang/english.txt @@ -463,6 +463,10 @@ STR_LANDSCAPING_MENU_LAYER_1 :Surface STR_LANDSCAPING_MENU_LAYER_2 :Undergroound (-1) STR_LANDSCAPING_MENU_LAYER_3 :Undergroound (-2) STR_LANDSCAPING_MENU_LAYER_4 :Undergroound (-3) +STR_LANDSCAPING_MENU_LAYER_5 :Undergroound (-4) +STR_LANDSCAPING_MENU_LAYER_6 :Undergroound (-5) +STR_LANDSCAPING_MENU_LAYER_7 :Undergroound (-6) +STR_LANDSCAPING_MENU_LAYER_8 :Undergroound (-7) ############ range ends here ############ range for music menu starts diff --git a/src/lang/russian.txt b/src/lang/russian.txt index 88d19d740..a301b748f 100644 --- a/src/lang/russian.txt +++ b/src/lang/russian.txt @@ -589,6 +589,10 @@ STR_LANDSCAPING_MENU_LAYER_1 :Поверхн STR_LANDSCAPING_MENU_LAYER_2 :Подземелье (-1) STR_LANDSCAPING_MENU_LAYER_3 :Подземелье (-2) STR_LANDSCAPING_MENU_LAYER_4 :Подземелье (-3) +STR_LANDSCAPING_MENU_LAYER_5 :Подземелье (-4) +STR_LANDSCAPING_MENU_LAYER_6 :Подземелье (-5) +STR_LANDSCAPING_MENU_LAYER_7 :Подземелье (-6) +STR_LANDSCAPING_MENU_LAYER_8 :Подземелье (-7) ############ range ends here ############ range for music menu starts diff --git a/src/layer.cpp b/src/layer.cpp index b897c45a3..7228fb4b6 100644 --- a/src/layer.cpp +++ b/src/layer.cpp @@ -94,7 +94,7 @@ uint _layer_size; ///< Layer size (sizeX * sizeY) void InstallLayerSystem(uint size_x, uint size_y, uint layer_count) { - if (!IsInsideMM(layer_count, MIN_LAYER_COUNT, MAX_LAYER_COUNT)) + if (!IsInsideMM(layer_count, MIN_LAYER_COUNT, MAX_LAYER_COUNT+1)) error("invalid layer count"); _layer_size_x = size_x; -- cgit v1.2.3-70-g09d2