From 99a79df02d4e36028a052b556c747fcece3836b6 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 11 Oct 2023 17:17:18 -0400 Subject: [PATCH] abs is up the chain a step --- 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 c33fd5a6..05550c87 100644 --- a/src/engine/InterestManagement/Terrain.java +++ b/src/engine/InterestManagement/Terrain.java @@ -178,8 +178,8 @@ public class Terrain { // Normalize terrain offset - Vector2f normalizedLoc = new Vector2f(zone_offset.x / this.terrain_size.x, - zone_offset.y / terrain_size.y); + Vector2f normalizedLoc = new Vector2f(Math.abs(zone_offset.x) / this.terrain_size.x, + Math.abs(zone_offset.y) / terrain_size.y); float xval;