remove movement sync
This commit is contained in:
@@ -384,15 +384,15 @@ public class MobileFSM {
|
|||||||
if (mob.combatTarget != null && mob.combatTarget.isAlive() == false) {
|
if (mob.combatTarget != null && mob.combatTarget.isAlive() == false) {
|
||||||
mob.setCombatTarget(null);
|
mob.setCombatTarget(null);
|
||||||
}
|
}
|
||||||
mob.updateLocation();
|
//mob.updateLocation();
|
||||||
if(mob.getTimestamps().containsKey("MOVEMENTSYNC") == false){
|
//if(mob.getTimestamps().containsKey("MOVEMENTSYNC") == false){
|
||||||
mob.getTimestamps().put("MOVEMENTSYNC",System.currentTimeMillis());
|
// mob.getTimestamps().put("MOVEMENTSYNC",System.currentTimeMillis());
|
||||||
}
|
//}
|
||||||
if(mob.getTimeStamp("MOVEMENTSYNC") < System.currentTimeMillis() + 1000){
|
//if(mob.getTimeStamp("MOVEMENTSYNC") < System.currentTimeMillis() + 1000){
|
||||||
mob.getTimestamps().put("MOVEMENTSYNC",System.currentTimeMillis());
|
// mob.getTimestamps().put("MOVEMENTSYNC",System.currentTimeMillis());
|
||||||
|
|
||||||
mob.setLoc(mob.getMovementLoc());
|
// mob.setLoc(mob.getMovementLoc());
|
||||||
}
|
//}
|
||||||
switch (mob.BehaviourType) {
|
switch (mob.BehaviourType) {
|
||||||
case GuardCaptain:
|
case GuardCaptain:
|
||||||
GuardCaptainLogic(mob);
|
GuardCaptainLogic(mob);
|
||||||
|
|||||||
@@ -1295,7 +1295,7 @@ public class Mob extends AbstractIntelligenceAgent {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
//resync corpses
|
//resync corpses
|
||||||
this.setLoc(this.getMovementLoc());
|
//this.setLoc(this.getMovementLoc());
|
||||||
if (this.isSiege) {
|
if (this.isSiege) {
|
||||||
this.deathTime = System.currentTimeMillis();
|
this.deathTime = System.currentTimeMillis();
|
||||||
//this.state = STATE.Dead;
|
//this.state = STATE.Dead;
|
||||||
|
|||||||
Reference in New Issue
Block a user