From 013ddcff665fc2054c36534183a95afc4d44f4f5 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 17 Sep 2023 12:25:07 -0400 Subject: [PATCH] heightmap blend configuration completed. --- src/engine/objects/Zone.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/Zone.java b/src/engine/objects/Zone.java index 7c5cf7aa..fdfa9d49 100644 --- a/src/engine/objects/Zone.java +++ b/src/engine/objects/Zone.java @@ -197,8 +197,8 @@ public class Zone extends AbstractGameObject { this.minBlend = Bounds.borrow(); this.maxBlend = Bounds.borrow(); - this.minBlend.setBounds(new Vector2f(this.absX, this.absZ), new Vector2f(Enum.CityBoundsType.ZONE.halfExtents, Enum.CityBoundsType.ZONE.halfExtents).subtract(heightMap.zone_minBlend, heightMap.zone_minBlend), 0.0f); - this.maxBlend.setBounds(new Vector2f(this.absX, this.absZ), new Vector2f(Enum.CityBoundsType.ZONE.halfExtents, Enum.CityBoundsType.ZONE.halfExtents).subtract(heightMap.zone_maxBlend, heightMap.zone_maxBlend), 0.0f); + this.minBlend.setBounds(new Vector2f(this.absX, this.absZ), this.getBounds().getHalfExtents().subtract(heightMap.zone_minBlend, heightMap.zone_minBlend), 0.0f); + this.maxBlend.setBounds(new Vector2f(this.absX, this.absZ), this.getBounds().getHalfExtents().subtract(heightMap.zone_maxBlend, heightMap.zone_maxBlend), 0.0f); } }