|
|
|
|
@ -959,7 +959,7 @@ public class Building extends AbstractWorldObject {
@@ -959,7 +959,7 @@ public class Building extends AbstractWorldObject {
|
|
|
|
|
// Altitude of this building is derived from the heightmap engine.
|
|
|
|
|
|
|
|
|
|
Vector3fImmutable tempLoc = new Vector3fImmutable(this.statLat + this.parentZone.absX, 0, this.statLon + this.parentZone.absZ); |
|
|
|
|
tempLoc = new Vector3fImmutable(tempLoc.x, Terrain.getWorldHeight(tempLoc), tempLoc.z); |
|
|
|
|
tempLoc = new Vector3fImmutable(tempLoc.x, Terrain.getWorldHeight(tempLoc) + this.statAlt, tempLoc.z); |
|
|
|
|
this.setLoc(tempLoc); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|