From b717c3d5501197ab5654ce90d01434527066c704 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 16 Sep 2023 16:03:22 -0400 Subject: [PATCH] Starting work to sync heightmap model with Shadowbane. --- src/engine/InterestManagement/HeightMap.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/engine/InterestManagement/HeightMap.java b/src/engine/InterestManagement/HeightMap.java index 4bca8037..fef1edf9 100644 --- a/src/engine/InterestManagement/HeightMap.java +++ b/src/engine/InterestManagement/HeightMap.java @@ -55,6 +55,9 @@ public class HeightMap { private float seaLevel = 0; private int[][] pixelColorValues; + private float zone_minBlend; + private float zone_maxBlend; + public HeightMap(ResultSet rs) throws SQLException { this.heightMapID = rs.getInt("heightMapID"); @@ -64,6 +67,9 @@ public class HeightMap { this.zoneLoadID = rs.getInt("zoneLoadID"); this.seaLevel = rs.getFloat("seaLevel"); + this.zone_minBlend = rs.getFloat("outsetZ"); + this.zone_maxBlend = rs.getFloat("outsetX"); + // Cache the full extents to avoid the calculation this.fullExtentsX = halfExtentsX * 2;