From 6761ec73614c101aac253cec09e77746739c0eff Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 25 Jul 2023 21:19:17 -0500 Subject: [PATCH] remove movement sync --- src/engine/ai/MobileFSM.java | 18 +++++++++--------- src/engine/objects/Mob.java | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/engine/ai/MobileFSM.java b/src/engine/ai/MobileFSM.java index 4513dee8..3069006d 100644 --- a/src/engine/ai/MobileFSM.java +++ b/src/engine/ai/MobileFSM.java @@ -384,15 +384,15 @@ public class MobileFSM { if (mob.combatTarget != null && mob.combatTarget.isAlive() == false) { mob.setCombatTarget(null); } - mob.updateLocation(); - if(mob.getTimestamps().containsKey("MOVEMENTSYNC") == false){ - mob.getTimestamps().put("MOVEMENTSYNC",System.currentTimeMillis()); - } - if(mob.getTimeStamp("MOVEMENTSYNC") < System.currentTimeMillis() + 1000){ - mob.getTimestamps().put("MOVEMENTSYNC",System.currentTimeMillis()); - - mob.setLoc(mob.getMovementLoc()); - } + //mob.updateLocation(); + //if(mob.getTimestamps().containsKey("MOVEMENTSYNC") == false){ + // mob.getTimestamps().put("MOVEMENTSYNC",System.currentTimeMillis()); + //} + //if(mob.getTimeStamp("MOVEMENTSYNC") < System.currentTimeMillis() + 1000){ + // mob.getTimestamps().put("MOVEMENTSYNC",System.currentTimeMillis()); + + // mob.setLoc(mob.getMovementLoc()); + //} switch (mob.BehaviourType) { case GuardCaptain: GuardCaptainLogic(mob); diff --git a/src/engine/objects/Mob.java b/src/engine/objects/Mob.java index 74a2c21e..cad73bcb 100644 --- a/src/engine/objects/Mob.java +++ b/src/engine/objects/Mob.java @@ -1295,7 +1295,7 @@ public class Mob extends AbstractIntelligenceAgent { try { //resync corpses - this.setLoc(this.getMovementLoc()); + //this.setLoc(this.getMovementLoc()); if (this.isSiege) { this.deathTime = System.currentTimeMillis(); //this.state = STATE.Dead;