rework of world altitude calculation.

This commit is contained in:
2023-09-12 14:51:04 -04:00
parent 5d9d13ce07
commit 045ee73b61
7 changed files with 28 additions and 60 deletions
-5
View File
@@ -36,11 +36,6 @@ 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());
+1 -1
View File
@@ -104,7 +104,7 @@ public class ZoneInfoCmd extends AbstractDevCmd {
output += newline;
output += "Sea Level = " + zone.getSeaLevel();
output += newline;
output += "World Altitude = " + zone.getWorldAltitude();
output += "World Altitude = " + zone.worldAltitude;
throwbackInfo(player, output);
City city = ZoneManager.getCityAtLocation(player.getLoc());