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); }