forked from MagicBane/Server
class and table schema now conform to JSON
This commit is contained in:
@@ -191,7 +191,7 @@ public class HeightMap {
|
||||
|
||||
HeightMap heightMap = new HeightMap(zone);
|
||||
|
||||
HeightMap.heightmapByLoadNum.put(zone.loadNum, heightMap);
|
||||
HeightMap.heightmapByLoadNum.put(zone.zoneTemplate, heightMap);
|
||||
|
||||
}
|
||||
|
||||
@@ -237,7 +237,7 @@ public class HeightMap {
|
||||
|
||||
// Heightmap blending is based on distance to edge of zone.
|
||||
|
||||
if (Bounds.collide(worldLoc, heightMapZone.maxBlend) == true)
|
||||
if (Bounds.collide(worldLoc, heightMapZone.blendBounds) == true)
|
||||
return interpolatedTerrainHeight;
|
||||
|
||||
// We will need the parent height if we got this far into the method
|
||||
@@ -264,8 +264,8 @@ public class HeightMap {
|
||||
|
||||
blendBounds.setBounds(new Vector2f(heightMapZone.absX, heightMapZone.absZ), zoneLoc, 0.0f);
|
||||
|
||||
float maxBlendArea = (heightMapZone.maxBlend.getHalfExtents().x) *
|
||||
(heightMapZone.maxBlend.getHalfExtents().y);
|
||||
float maxBlendArea = (heightMapZone.blendBounds.getHalfExtents().x) *
|
||||
(heightMapZone.blendBounds.getHalfExtents().y);
|
||||
float currentArea = (blendBounds.getHalfExtents().x) *
|
||||
(blendBounds.getHalfExtents().y);
|
||||
float zoneArea = (heightMapZone.bounds.getHalfExtents().x) *
|
||||
|
||||
Reference in New Issue
Block a user