Browse Source

Debug code added

magicbox-1.5.2
MagicBot 1 year ago
parent
commit
68aef50283
  1. 4
      src/engine/InterestManagement/Terrain.java

4
src/engine/InterestManagement/Terrain.java

@ -136,6 +136,7 @@ public class Terrain { @@ -136,6 +136,7 @@ public class Terrain {
public float getInterpolatedTerrainHeight(Vector2f terrainLoc) {
try {
float interpolatedHeight;
Vector2f terrain_cell = getTerrainCell(terrainLoc);
@ -168,6 +169,9 @@ public class Terrain { @@ -168,6 +169,9 @@ public class Terrain {
interpolatedHeight *= this.terrain_scale; // Scale height
return interpolatedHeight;
} catch (Exception e) {
throw new RuntimeException(e);
}
}
public float terrainBlend(Vector2f terrainLoc) {

Loading…
Cancel
Save