abs is up the chain a step

This commit is contained in:
2023-10-11 17:17:18 -04:00
parent 1a0f318968
commit 99a79df02d
+2 -2
View File
@@ -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;