Browse Source

Devcmd updated.

combat-2
MagicBot 1 year ago
parent
commit
9bf0d3f7d1
  1. 2
      src/engine/devcmd/cmds/GetHeightCmd.java

2
src/engine/devcmd/cmds/GetHeightCmd.java

@ -50,11 +50,11 @@ public class GetHeightCmd extends AbstractDevCmd { @@ -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];

Loading…
Cancel
Save