From 44b5b98597d6416a1e77fe6e2c0c5765d4b84698 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 20 Aug 2023 19:20:22 -0400 Subject: [PATCH] dirtyFlag integration. --- src/engine/InterestManagement/InterestManager.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/engine/InterestManagement/InterestManager.java b/src/engine/InterestManagement/InterestManager.java index 79a4cc19..3aa82749 100644 --- a/src/engine/InterestManagement/InterestManager.java +++ b/src/engine/InterestManagement/InterestManager.java @@ -234,12 +234,9 @@ public enum InterestManager implements Runnable { float distanceSquared = player.getLoc().distanceSquared2D(player.getLastStaticLoc()); - if (distanceSquared > sqr(25)) { + if (distanceSquared > sqr(25)) player.setLastStaticLoc(player.getLoc()); - player.dirtyLoad = true; - } - - if (player.dirtyLoad == false) + else if (player.dirtyLoad == false) return; // Get Statics in range