property conforms to JSON

This commit is contained in:
2023-10-12 06:19:22 -04:00
parent 9e96add299
commit 1b2c218e83
7 changed files with 14 additions and 14 deletions
+6 -6
View File
@@ -35,15 +35,15 @@ public class Terrain {
this.zone = zone;
this.heightmap = this.zone.terrain_image;
// Configure PLANAR zones to use the same
// 16x16 pixel image that all other flat
// terrains share.
// Configure PLANAR zones to use the same 16x16 pixel image
// that all similar terrains share. (See JSON) Guild zones
// use an inverted clone of this heightmap.
if (this.zone.terrain_type.equals("PLANAR"))
if (this.zone.guild_zone)
this.heightmap = 1006301;
this.heightmap = 1006301; // all 255
else
this.heightmap = 1006300;
this.heightmap = 1006300; // all 0
// Load pixel data for this terrain from cache
@@ -110,7 +110,7 @@ public class Terrain {
// Interpolate height for this position in terrain
float interpolatedChildHeight = terrainZone.terrain.getInterpolatedTerrainHeight(terrainLoc);
interpolatedChildHeight += terrainZone.worldAltitude;
interpolatedChildHeight += terrainZone.global_height;
return interpolatedChildHeight;
}