From 4ee4054ab3259858ebba4b867fa00a3b20ae6e50 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 15 Oct 2023 13:46:39 -0400 Subject: [PATCH] Dev cmd updated --- src/engine/devcmd/cmds/GetHeightCmd.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/engine/devcmd/cmds/GetHeightCmd.java b/src/engine/devcmd/cmds/GetHeightCmd.java index 4cc1662f..0f493de2 100644 --- a/src/engine/devcmd/cmds/GetHeightCmd.java +++ b/src/engine/devcmd/cmds/GetHeightCmd.java @@ -47,6 +47,8 @@ public class GetHeightCmd extends AbstractDevCmd { float parentHeight = parentZone.terrain.getInterpolatedTerrainHeight(parentZoneLoc); parentHeight += parentZone.global_height; + float blendedHeight = Terrain.getWorldHeight(currentZone, playerCharacter.getLoc()); + Vector2f gridSquare = heightmapZone.terrain.getTerrainCell(childZoneLoc); gridSquare.x = (float) Math.floor(gridSquare.x); gridSquare.y = (float) Math.floor(gridSquare.y); @@ -58,13 +60,13 @@ public class GetHeightCmd extends AbstractDevCmd { this.throwbackInfo(playerCharacter, "Grid : " + "[" + gridSquare.x + "]" + "[" + gridSquare.y + "]"); this.throwbackInfo(playerCharacter, "Offset: " + "[" + normalizedOffset.x + "]" + "[" + normalizedOffset.y + "]"); this.throwbackInfo(playerCharacter, "Blend: " + heightmapZone.terrain.terrainBlend(childZoneOffset)); - this.throwbackInfo(playerCharacter, "Height returned: " + Math.ceil(childHeight)); this.throwbackInfo(playerCharacter, "------------"); this.throwbackInfo(playerCharacter, "Child Height: " + Math.ceil(childHeight)); this.throwbackInfo(playerCharacter, "Parent Height : " + Math.ceil(parentHeight)); - this.throwbackInfo(playerCharacter, "------------"); + this.throwbackInfo(playerCharacter, "Blended Height : " + Math.ceil(blendedHeight)); + } @Override