From 0afc8a2dc5858af6ba0912d646aece712770c6d9 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 10 Oct 2023 07:59:42 -0400 Subject: [PATCH] Platform update --- src/engine/InterestManagement/Terrain.java | 5 +++++ src/engine/gameManager/ZoneManager.java | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/engine/InterestManagement/Terrain.java b/src/engine/InterestManagement/Terrain.java index 9721afac..6c39bf7b 100644 --- a/src/engine/InterestManagement/Terrain.java +++ b/src/engine/InterestManagement/Terrain.java @@ -106,6 +106,11 @@ public class Terrain { float interpolatedChildHeight = terrainZone.terrain.getInterpolatedTerrainHeight(terrainLoc); interpolatedChildHeight += terrainZone.worldAltitude; + // Player cities have platform + + if (terrainZone.guild_zone) + interpolatedChildHeight += 5; + // Interpolate height for this position in parent float interpolatedParentTerrainHeight = parentZone.terrain.getInterpolatedTerrainHeight(parentLoc); diff --git a/src/engine/gameManager/ZoneManager.java b/src/engine/gameManager/ZoneManager.java index cf1594d2..008ddc03 100644 --- a/src/engine/gameManager/ZoneManager.java +++ b/src/engine/gameManager/ZoneManager.java @@ -473,11 +473,6 @@ public enum ZoneManager { worldAlttitude += zone.yOffset; - // Player cities have platform - - if (zone.guild_zone) - worldAlttitude += 5; - return worldAlttitude; }