Fix water level, add medium template transitional_engine
authorunC0Rr
Fri, 10 Mar 2023 11:42:25 +0100
branchtransitional_engine
changeset 15958 772a43d88e6b
parent 15956 c273908218f3
child 16004 2146cb7be36f
Fix water level, add medium template
hedgewars/uLandUtils.pas
share/hedgewars/Data/wfc_templates.yaml
--- a/hedgewars/uLandUtils.pas	Wed Feb 15 12:42:43 2023 +0100
+++ b/hedgewars/uLandUtils.pas	Fri Mar 10 11:42:25 2023 +0100
@@ -89,7 +89,7 @@
     leftX:= (LAND_WIDTH - playWidth) div 2;
     rightX:= Pred(leftX + playWidth);
     topY:= LAND_HEIGHT - playHeight;
-
+    cWaterLine:= LAND_HEIGHT;
 
     // let's assume those are powers of two
     LAND_WIDTH_MASK:= not(LAND_WIDTH-1);
--- a/share/hedgewars/Data/wfc_templates.yaml	Wed Feb 15 12:42:43 2023 +0100
+++ b/share/hedgewars/Data/wfc_templates.yaml	Fri Mar 10 11:42:25 2023 +0100
@@ -176,9 +176,21 @@
     edges: *open_edges
     tiles: *template_00_tiles
 
+
+  - &template_04
+    width: 2200
+    height: 960
+    can_invert: false
+    is_negative: false
+    put_girders: true
+    max_hedgehogs: 24
+    wrap: false
+    edges: *open_edges
+    tiles: *template_00_tiles
+
 template_types:
   small: [2]
-  medium: [1]
+  medium: [4]
   large: [1]
   cavern: [0]
   wacky: [3]