From 6ac65c73d5507744f482e00e091ea6480474fd3f Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 11 Oct 2023 17:04:09 -0400 Subject: [PATCH] Method cleanup --- src/engine/InterestManagement/Terrain.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/InterestManagement/Terrain.java b/src/engine/InterestManagement/Terrain.java index 07a822a1..5db8df36 100644 --- a/src/engine/InterestManagement/Terrain.java +++ b/src/engine/InterestManagement/Terrain.java @@ -187,8 +187,8 @@ public class Terrain { // Normalize terrain loc - Vector2f normalizedLoc = new Vector2f(zoneOffset.x / this.terrain_size.x, - zoneOffset.y / terrain_size.y); + Vector2f normalizedLoc = new Vector2f(Math.abs(zoneOffset.x / this.terrain_size.x), + Math.abs(zoneOffset.y / terrain_size.y)); float xval;