Devcmd updated.

This commit is contained in:
2023-11-11 07:03:35 -05:00
parent 8300c47e4a
commit 9bf0d3f7d1
+1 -1
View File
@@ -50,11 +50,11 @@ public class GetHeightCmd extends AbstractDevCmd {
float blendedHeight = Terrain.getWorldHeight(currentZone, playerCharacter.getLoc());
Vector2f terrainCell = heightmapZone.terrain.getTerrainCell(childZoneLoc);
Vector2f cell_offset = new Vector2f(terrainCell.x % 1, terrainCell.y % 1);
terrainCell.x = (float) Math.floor(terrainCell.x);
terrainCell.y = (float) Math.floor(terrainCell.y);
Vector2f cell_offset = new Vector2f(terrainCell.x % 1, terrainCell.y % 1);
short top_left_pixel = heightmapZone.terrain.terrain_pixel_data[(int) terrainCell.x][(int) terrainCell.y];
short top_right_pixel = heightmapZone.terrain.terrain_pixel_data[(int) terrainCell.x + 1][(int) terrainCell.y];