Browse Source

Method cleanup

magicbox-1.5.2
MagicBot 1 year ago
parent
commit
c6d24d25cc
  1. 6
      src/engine/gameManager/ZoneManager.java

6
src/engine/gameManager/ZoneManager.java

@ -464,16 +464,14 @@ public enum ZoneManager { @@ -464,16 +464,14 @@ public enum ZoneManager {
if (zone.parent == null)
return worldAlttitude;
Zone parentZone = zone.parent;
// Children of seafloor
if (parentZone.parent == null)
if (ZoneManager.seaFloor.equals(zone.parent))
return worldAlttitude + zone.yOffset;
// return height from heightmap engine at zone location
worldAlttitude = HeightMap.getWorldHeight(parentZone, zone.getLoc());
worldAlttitude = HeightMap.getWorldHeight(zone.parent, zone.getLoc());
// Add zone offset to value

Loading…
Cancel
Save