From c1e1c730bb9c64c5d9c1b2820b9458b5f7a3166b Mon Sep 17 00:00:00 2001 From: MagicBot Date: Thu, 12 Oct 2023 05:49:22 -0400 Subject: [PATCH] Opposite of 1006300 created as 1006301. --- src/engine/objects/Zone.java | 4 +++- src/engine/util/MapLoader.java | 11 +++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/engine/objects/Zone.java b/src/engine/objects/Zone.java index dfb78c6a..637893cd 100644 --- a/src/engine/objects/Zone.java +++ b/src/engine/objects/Zone.java @@ -107,9 +107,11 @@ public class Zone extends AbstractGameObject { if (this.guild_zone) { this.max_blend = 128; this.min_blend = 128; + this.terrain_max_y = 5; this.major_radius = (int) Enum.CityBoundsType.ZONE.halfExtents; this.minor_radius = (int) Enum.CityBoundsType.ZONE.halfExtents; - this.terrain_type = "PLANAR"; + this.terrain_type = "TARGA"; + this.terrain_image = 1006301; } if (this.terrain_type.equals("NONE")) diff --git a/src/engine/util/MapLoader.java b/src/engine/util/MapLoader.java index 779080bd..312b5ffc 100644 --- a/src/engine/util/MapLoader.java +++ b/src/engine/util/MapLoader.java @@ -18,6 +18,7 @@ import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; +import java.util.Arrays; import java.util.stream.Stream; public enum MapLoader { @@ -137,6 +138,16 @@ public enum MapLoader { }); // Try with resources block + // Generate full white alternate to 1600300 + // Declare and initialize an array of short[16][16] + + short[][] heightMapEntry = new short[16][16]; + + for (short[] shorts : heightMapEntry) + Arrays.fill(shorts, (short) 255); + + Terrain._heightmap_pixel_cache.put(1006301, heightMapEntry); + } catch (IOException e) { Logger.error(e); }