|
|
|
@ -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
|
|
|
|
|
|
|
|
|
|