From 31ba1f2c4c6629569bd7887bb73ce1a18c9fbd33 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 25 Oct 2023 13:46:08 -0400 Subject: [PATCH] Height from zone center. --- src/engine/InterestManagement/Terrain.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/InterestManagement/Terrain.java b/src/engine/InterestManagement/Terrain.java index a4110541..dcfdd402 100644 --- a/src/engine/InterestManagement/Terrain.java +++ b/src/engine/InterestManagement/Terrain.java @@ -120,7 +120,7 @@ public class Terrain { // Transform world loc into zone space coordinate system Vector2f terrainLoc = ZoneManager.worldToTerrainSpace(world_loc, terrainZone); - Vector2f parentLoc = ZoneManager.worldToTerrainSpace(parentZone.getLoc(), parentZone); + Vector2f parentLoc = ZoneManager.worldToTerrainSpace(terrainZone.getLoc(), parentZone); // Offset from origin needed for blending function