Browse Source

dirtyFlag integration.

master
MagicBot 1 year ago
parent
commit
44b5b98597
  1. 7
      src/engine/InterestManagement/InterestManager.java

7
src/engine/InterestManagement/InterestManager.java

@ -234,12 +234,9 @@ public enum InterestManager implements Runnable {
float distanceSquared = player.getLoc().distanceSquared2D(player.getLastStaticLoc()); float distanceSquared = player.getLoc().distanceSquared2D(player.getLastStaticLoc());
if (distanceSquared > sqr(25)) { if (distanceSquared > sqr(25))
player.setLastStaticLoc(player.getLoc()); player.setLastStaticLoc(player.getLoc());
player.dirtyLoad = true; else if (player.dirtyLoad == false)
}
if (player.dirtyLoad == false)
return; return;
// Get Statics in range // Get Statics in range

Loading…
Cancel
Save