diff --git a/src/engine/devcmd/cmds/GetHeightCmd.java b/src/engine/devcmd/cmds/GetHeightCmd.java index f2d61089..5e3c73aa 100644 --- a/src/engine/devcmd/cmds/GetHeightCmd.java +++ b/src/engine/devcmd/cmds/GetHeightCmd.java @@ -36,6 +36,11 @@ public class GetHeightCmd extends AbstractDevCmd { heightmapZone = HeightMap.getNextZoneWithTerrain(currentZone); parentZone = HeightMap.getNextZoneWithTerrain(currentZone.getParent()); + // Any argument rebuilds altitude + + if (words[0].isEmpty() == false) + currentZone.generateWorldAltitude(); + float currentHeight = HeightMap.getWorldHeight(currentZone, playerCharacter.getLoc()); float parentHeight = HeightMap.getWorldHeight(parentZone, playerCharacter.getLoc());