Browse Source

Flip Flop

magicbox-1.5.2
MagicBot 1 year ago
parent
commit
7dcde390cd
  1. 4
      src/engine/InterestManagement/HeightMap.java
  2. 3
      src/engine/gameManager/ZoneManager.java

4
src/engine/InterestManagement/HeightMap.java

@ -339,10 +339,6 @@ public class HeightMap { @@ -339,10 +339,6 @@ public class HeightMap {
if (zoneLoc.y > this.fullExtentsY)
zoneLoc.setY(this.fullExtentsY);
// Flip Y coordinates
zoneLoc.setY(this.fullExtentsY - zoneLoc.y);
float xBucket = (zoneLoc.x / this.bucketWidthX);
float yBucket = (zoneLoc.y / this.bucketWidthY);

3
src/engine/gameManager/ZoneManager.java

@ -305,9 +305,6 @@ public enum ZoneManager { @@ -305,9 +305,6 @@ public enum ZoneManager {
localCoords = new Vector2f(worldVector.x, worldVector.z);
localCoords = localCoords.subtract(zoneOrigin);
localCoords.setY((serverZone.bounds.getHalfExtents().y * 2) - localCoords.y);
// TODO : Make sure this value does not go outside the zone's bounds.
return localCoords;

Loading…
Cancel
Save