Browse Source

abs is up the chain a step

magicbox-1.5.2
MagicBot 1 year ago
parent
commit
99a79df02d
  1. 4
      src/engine/InterestManagement/Terrain.java

4
src/engine/InterestManagement/Terrain.java

@ -178,8 +178,8 @@ public class Terrain {
// Normalize terrain offset // Normalize terrain offset
Vector2f normalizedLoc = new Vector2f(zone_offset.x / this.terrain_size.x, Vector2f normalizedLoc = new Vector2f(Math.abs(zone_offset.x) / this.terrain_size.x,
zone_offset.y / terrain_size.y); Math.abs(zone_offset.y) / terrain_size.y);
float xval; float xval;

Loading…
Cancel
Save