From a94b12e8cd4e30c908c2a0e0c4e921bc84d58a41 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 17 Sep 2023 12:15:21 -0400 Subject: [PATCH] Correction to blend configuration. --- src/engine/objects/Zone.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/objects/Zone.java b/src/engine/objects/Zone.java index d3e9166b..3c9a790e 100644 --- a/src/engine/objects/Zone.java +++ b/src/engine/objects/Zone.java @@ -190,13 +190,13 @@ public class Zone extends AbstractGameObject { // Set heightmap blending bounds - this.minBlend = Bounds.borrow(); - this.maxBlend = Bounds.borrow(); - if (heightMap == null) { this.minBlend = this.getBounds(); this.maxBlend = this.getBounds(); } else { + this.minBlend = Bounds.borrow(); + this.maxBlend = Bounds.borrow(); + this.minBlend.setBounds(new Vector2f(this.absX, this.absZ), new Vector2f(Enum.CityBoundsType.ZONE.extents, Enum.CityBoundsType.ZONE.extents).subtract(heightMap.zone_minBlend, heightMap.zone_minBlend), 0.0f); this.maxBlend.setBounds(new Vector2f(this.absX, this.absZ), new Vector2f(Enum.CityBoundsType.ZONE.extents, Enum.CityBoundsType.ZONE.extents).subtract(heightMap.zone_maxBlend, heightMap.zone_maxBlend), 0.0f); }