|
|
@ -459,16 +459,14 @@ public enum ZoneManager { |
|
|
|
|
|
|
|
|
|
|
|
float worldAlttitude = MBServerStatics.SEA_FLOOR_ALTITUDE; |
|
|
|
float worldAlttitude = MBServerStatics.SEA_FLOOR_ALTITUDE; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Seafloor
|
|
|
|
// Seafloor
|
|
|
|
|
|
|
|
|
|
|
|
if (zone.getParent() == null) { |
|
|
|
if (zone.getParent() == null) |
|
|
|
return worldAlttitude; |
|
|
|
return worldAlttitude; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Zone parentZone = zone.getParent(); |
|
|
|
Zone parentZone = zone.getParent(); |
|
|
|
|
|
|
|
|
|
|
|
// Child of seafloor
|
|
|
|
// Children of seafloor
|
|
|
|
|
|
|
|
|
|
|
|
if (parentZone.getParent() == null) |
|
|
|
if (parentZone.getParent() == null) |
|
|
|
return worldAlttitude + zone.getYCoord(); |
|
|
|
return worldAlttitude + zone.getYCoord(); |
|
|
|