diff options
author | Erich Eckner <git@eckner.net> | 2018-11-06 10:57:16 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2022-01-16 21:58:16 +0100 |
commit | 4c4efe6b032bfbb47bac40748d0b97749e45572e (patch) | |
tree | 282a07aef1741c40aeb487a73e322174cba79eeb | |
parent | 8dd37add933b00a179affba7d787beefc442fb4c (diff) | |
download | openttd-4c4efe6b032bfbb47bac40748d0b97749e45572e.tar.xz |
enable the lowest 4 layers, too
-rw-r--r-- | src/lang/english.txt | 4 | ||||
-rw-r--r-- | src/lang/russian.txt | 6 | ||||
-rw-r--r-- | src/layer.cpp | 2 |
3 files changed, 10 insertions, 2 deletions
diff --git a/src/lang/english.txt b/src/lang/english.txt index 5381a0105..77c25097f 100644 --- a/src/lang/english.txt +++ b/src/lang/english.txt @@ -485,6 +485,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 # Music menu diff --git a/src/lang/russian.txt b/src/lang/russian.txt index eca8f7891..343630757 100644 --- a/src/lang/russian.txt +++ b/src/lang/russian.txt @@ -605,13 +605,17 @@ STR_LANDSCAPING_MENU_PLANT_TREES :Высадка STR_LANDSCAPING_MENU_PLACE_SIGN :Поставить метку # Underground menu -###length 6 +###length 10 STR_LANDSCAPING_MENU_SEPARATOR1 : STR_LANDSCAPING_MENU_UNDERGROUND :Спец. конструкции 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) # Music menu ###length 1 diff --git a/src/layer.cpp b/src/layer.cpp index fdf182e1f..4fe511234 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; |