Correction to blend configuration.

This commit is contained in:
2023-09-17 12:15:21 -04:00
parent c38103068e
commit a94b12e8cd
+3 -3
View File
@@ -190,13 +190,13 @@ public class Zone extends AbstractGameObject {
// Set heightmap blending bounds // Set heightmap blending bounds
this.minBlend = Bounds.borrow();
this.maxBlend = Bounds.borrow();
if (heightMap == null) { if (heightMap == null) {
this.minBlend = this.getBounds(); this.minBlend = this.getBounds();
this.maxBlend = this.getBounds(); this.maxBlend = this.getBounds();
} else { } 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.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); 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);
} }