summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-11-06 10:57:16 +0100
committerErich Eckner <git@eckner.net>2018-11-16 19:11:47 +0100
commit93771e6e5890c313eff5f4155d5e84b1bfdd5e71 (patch)
tree2c06b1244c1238d01e0c23c3a70f348f25a40e9f
parent53565be89e81e90229c140059f4b18e4947d1eef (diff)
downloadopenttd-93771e6e5890c313eff5f4155d5e84b1bfdd5e71.tar.xz
enable the lowest 4 layers, too
-rw-r--r--src/lang/english.txt4
-rw-r--r--src/lang/russian.txt4
-rw-r--r--src/layer.cpp2
3 files changed, 9 insertions, 1 deletions
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;