From 5d9d13ce07788d4421854b2838b5124ffd0155db Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 12 Sep 2023 13:06:46 -0400 Subject: [PATCH] Any argument rebuilds world altitude. --- src/engine/devcmd/cmds/GetHeightCmd.java | 5 +++++ 1 file changed, 5 insertions(+) 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());