Browse Source

Platform update

magicbox-1.5.2
MagicBot 1 year ago
parent
commit
0afc8a2dc5
  1. 5
      src/engine/InterestManagement/Terrain.java
  2. 5
      src/engine/gameManager/ZoneManager.java

5
src/engine/InterestManagement/Terrain.java

@ -106,6 +106,11 @@ public class Terrain { @@ -106,6 +106,11 @@ public class Terrain {
float interpolatedChildHeight = terrainZone.terrain.getInterpolatedTerrainHeight(terrainLoc);
interpolatedChildHeight += terrainZone.worldAltitude;
// Player cities have platform
if (terrainZone.guild_zone)
interpolatedChildHeight += 5;
// Interpolate height for this position in parent
float interpolatedParentTerrainHeight = parentZone.terrain.getInterpolatedTerrainHeight(parentLoc);

5
src/engine/gameManager/ZoneManager.java

@ -473,11 +473,6 @@ public enum ZoneManager { @@ -473,11 +473,6 @@ public enum ZoneManager {
worldAlttitude += zone.yOffset;
// Player cities have platform
if (zone.guild_zone)
worldAlttitude += 5;
return worldAlttitude;
}

Loading…
Cancel
Save