From bd208bd1ab7345bdfc9922dba56fc9b53d85d84d Mon Sep 17 00:00:00 2001 From: MagicBot Date: Mon, 9 Oct 2023 09:45:04 -0400 Subject: [PATCH] Blend 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 55aaa925..9721afac 100644 --- a/src/engine/InterestManagement/Terrain.java +++ b/src/engine/InterestManagement/Terrain.java @@ -208,9 +208,9 @@ public class Terrain { float value; - if (normalizedLoc.x <= 1 - xval || normalizedLoc.y <= 1 - yval) { + if (normalizedLoc.x <= 1 - xval || normalizedLoc.x <= normalizedLoc.y) { - if (normalizedLoc.x < 1 - xval) + if (normalizedLoc.y < 1 - yval) return 1; value = (normalizedLoc.y - (1 - yval)) / yval;