Removed updatePosition broadcastMoveToLocation.
Thanks to Bandnentans.
This commit is contained in:
@@ -3155,8 +3155,6 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
// Set the timer of last position update to now
|
// Set the timer of last position update to now
|
||||||
m._moveTimestamp = gameTicks;
|
m._moveTimestamp = gameTicks;
|
||||||
|
|
||||||
// Send a Server->Client packet MoveToLocation to the actor and all known PlayerInstance.
|
|
||||||
broadcastMoveToLocation();
|
|
||||||
if (distFraction > 1)
|
if (distFraction > 1)
|
||||||
{
|
{
|
||||||
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
||||||
|
|||||||
@@ -3155,8 +3155,6 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
// Set the timer of last position update to now
|
// Set the timer of last position update to now
|
||||||
m._moveTimestamp = gameTicks;
|
m._moveTimestamp = gameTicks;
|
||||||
|
|
||||||
// Send a Server->Client packet MoveToLocation to the actor and all known PlayerInstance.
|
|
||||||
broadcastMoveToLocation();
|
|
||||||
if (distFraction > 1)
|
if (distFraction > 1)
|
||||||
{
|
{
|
||||||
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
||||||
|
|||||||
@@ -3155,8 +3155,6 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
// Set the timer of last position update to now
|
// Set the timer of last position update to now
|
||||||
m._moveTimestamp = gameTicks;
|
m._moveTimestamp = gameTicks;
|
||||||
|
|
||||||
// Send a Server->Client packet MoveToLocation to the actor and all known PlayerInstance.
|
|
||||||
broadcastMoveToLocation();
|
|
||||||
if (distFraction > 1)
|
if (distFraction > 1)
|
||||||
{
|
{
|
||||||
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
||||||
|
|||||||
@@ -3155,8 +3155,6 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
// Set the timer of last position update to now
|
// Set the timer of last position update to now
|
||||||
m._moveTimestamp = gameTicks;
|
m._moveTimestamp = gameTicks;
|
||||||
|
|
||||||
// Send a Server->Client packet MoveToLocation to the actor and all known PlayerInstance.
|
|
||||||
broadcastMoveToLocation();
|
|
||||||
if (distFraction > 1)
|
if (distFraction > 1)
|
||||||
{
|
{
|
||||||
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
||||||
|
|||||||
@@ -3155,8 +3155,6 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
// Set the timer of last position update to now
|
// Set the timer of last position update to now
|
||||||
m._moveTimestamp = gameTicks;
|
m._moveTimestamp = gameTicks;
|
||||||
|
|
||||||
// Send a Server->Client packet MoveToLocation to the actor and all known PlayerInstance.
|
|
||||||
broadcastMoveToLocation();
|
|
||||||
if (distFraction > 1)
|
if (distFraction > 1)
|
||||||
{
|
{
|
||||||
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
||||||
|
|||||||
@@ -3155,8 +3155,6 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
// Set the timer of last position update to now
|
// Set the timer of last position update to now
|
||||||
m._moveTimestamp = gameTicks;
|
m._moveTimestamp = gameTicks;
|
||||||
|
|
||||||
// Send a Server->Client packet MoveToLocation to the actor and all known PlayerInstance.
|
|
||||||
broadcastMoveToLocation();
|
|
||||||
if (distFraction > 1)
|
if (distFraction > 1)
|
||||||
{
|
{
|
||||||
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
||||||
|
|||||||
@@ -3155,8 +3155,6 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
// Set the timer of last position update to now
|
// Set the timer of last position update to now
|
||||||
m._moveTimestamp = gameTicks;
|
m._moveTimestamp = gameTicks;
|
||||||
|
|
||||||
// Send a Server->Client packet MoveToLocation to the actor and all known PlayerInstance.
|
|
||||||
broadcastMoveToLocation();
|
|
||||||
if (distFraction > 1)
|
if (distFraction > 1)
|
||||||
{
|
{
|
||||||
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
||||||
|
|||||||
@@ -3154,8 +3154,6 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
// Set the timer of last position update to now
|
// Set the timer of last position update to now
|
||||||
m._moveTimestamp = gameTicks;
|
m._moveTimestamp = gameTicks;
|
||||||
|
|
||||||
// Send a Server->Client packet MoveToLocation to the actor and all known PlayerInstance.
|
|
||||||
broadcastMoveToLocation();
|
|
||||||
if (distFraction > 1)
|
if (distFraction > 1)
|
||||||
{
|
{
|
||||||
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
||||||
|
|||||||
@@ -3154,8 +3154,6 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
// Set the timer of last position update to now
|
// Set the timer of last position update to now
|
||||||
m._moveTimestamp = gameTicks;
|
m._moveTimestamp = gameTicks;
|
||||||
|
|
||||||
// Send a Server->Client packet MoveToLocation to the actor and all known PlayerInstance.
|
|
||||||
broadcastMoveToLocation();
|
|
||||||
if (distFraction > 1)
|
if (distFraction > 1)
|
||||||
{
|
{
|
||||||
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
||||||
|
|||||||
-2
@@ -3154,8 +3154,6 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
// Set the timer of last position update to now
|
// Set the timer of last position update to now
|
||||||
m._moveTimestamp = gameTicks;
|
m._moveTimestamp = gameTicks;
|
||||||
|
|
||||||
// Send a Server->Client packet MoveToLocation to the actor and all known PlayerInstance.
|
|
||||||
broadcastMoveToLocation();
|
|
||||||
if (distFraction > 1)
|
if (distFraction > 1)
|
||||||
{
|
{
|
||||||
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
||||||
|
|||||||
@@ -582,7 +582,7 @@ public abstract class AbstractAI implements Ctrl
|
|||||||
*/
|
*/
|
||||||
protected void moveTo(int x, int y, int z)
|
protected void moveTo(int x, int y, int z)
|
||||||
{
|
{
|
||||||
// Chek if actor can move
|
// Check if actor can move
|
||||||
if (!_actor.isMovementDisabled())
|
if (!_actor.isMovementDisabled())
|
||||||
{
|
{
|
||||||
// Set AI movement data
|
// Set AI movement data
|
||||||
|
|||||||
@@ -4077,8 +4077,6 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
// Set the timer of last position update to now
|
// Set the timer of last position update to now
|
||||||
m._moveTimestamp = gameTicks;
|
m._moveTimestamp = gameTicks;
|
||||||
|
|
||||||
// Send a Server->Client packet MoveToLocation to the actor and all known PlayerInstance.
|
|
||||||
broadcastMoveToLocation();
|
|
||||||
if (distFraction > 1)
|
if (distFraction > 1)
|
||||||
{
|
{
|
||||||
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
||||||
|
|||||||
@@ -582,7 +582,7 @@ public abstract class AbstractAI implements Ctrl
|
|||||||
*/
|
*/
|
||||||
protected void moveTo(int x, int y, int z)
|
protected void moveTo(int x, int y, int z)
|
||||||
{
|
{
|
||||||
// Chek if actor can move
|
// Check if actor can move
|
||||||
if (!_actor.isMovementDisabled())
|
if (!_actor.isMovementDisabled())
|
||||||
{
|
{
|
||||||
// Set AI movement data
|
// Set AI movement data
|
||||||
|
|||||||
@@ -4079,8 +4079,6 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
// Set the timer of last position update to now
|
// Set the timer of last position update to now
|
||||||
m._moveTimestamp = gameTicks;
|
m._moveTimestamp = gameTicks;
|
||||||
|
|
||||||
// Send a Server->Client packet MoveToLocation to the actor and all known PlayerInstance.
|
|
||||||
broadcastMoveToLocation();
|
|
||||||
if (distFraction > 1)
|
if (distFraction > 1)
|
||||||
{
|
{
|
||||||
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
||||||
|
|||||||
@@ -3155,8 +3155,6 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
// Set the timer of last position update to now
|
// Set the timer of last position update to now
|
||||||
m._moveTimestamp = gameTicks;
|
m._moveTimestamp = gameTicks;
|
||||||
|
|
||||||
// Send a Server->Client packet MoveToLocation to the actor and all known PlayerInstance.
|
|
||||||
broadcastMoveToLocation();
|
|
||||||
if (distFraction > 1)
|
if (distFraction > 1)
|
||||||
{
|
{
|
||||||
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
||||||
|
|||||||
@@ -3155,8 +3155,6 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
// Set the timer of last position update to now
|
// Set the timer of last position update to now
|
||||||
m._moveTimestamp = gameTicks;
|
m._moveTimestamp = gameTicks;
|
||||||
|
|
||||||
// Send a Server->Client packet MoveToLocation to the actor and all known PlayerInstance.
|
|
||||||
broadcastMoveToLocation();
|
|
||||||
if (distFraction > 1)
|
if (distFraction > 1)
|
||||||
{
|
{
|
||||||
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
||||||
|
|||||||
-2
@@ -3155,8 +3155,6 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
// Set the timer of last position update to now
|
// Set the timer of last position update to now
|
||||||
m._moveTimestamp = gameTicks;
|
m._moveTimestamp = gameTicks;
|
||||||
|
|
||||||
// Send a Server->Client packet MoveToLocation to the actor and all known PlayerInstance.
|
|
||||||
broadcastMoveToLocation();
|
|
||||||
if (distFraction > 1)
|
if (distFraction > 1)
|
||||||
{
|
{
|
||||||
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
||||||
|
|||||||
-2
@@ -3168,8 +3168,6 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
// Set the timer of last position update to now
|
// Set the timer of last position update to now
|
||||||
m._moveTimestamp = gameTicks;
|
m._moveTimestamp = gameTicks;
|
||||||
|
|
||||||
// Send a Server->Client packet MoveToLocation to the actor and all known PlayerInstance.
|
|
||||||
broadcastMoveToLocation();
|
|
||||||
if (distFraction > 1)
|
if (distFraction > 1)
|
||||||
{
|
{
|
||||||
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
||||||
|
|||||||
-2
@@ -3168,8 +3168,6 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
// Set the timer of last position update to now
|
// Set the timer of last position update to now
|
||||||
m._moveTimestamp = gameTicks;
|
m._moveTimestamp = gameTicks;
|
||||||
|
|
||||||
// Send a Server->Client packet MoveToLocation to the actor and all known PlayerInstance.
|
|
||||||
broadcastMoveToLocation();
|
|
||||||
if (distFraction > 1)
|
if (distFraction > 1)
|
||||||
{
|
{
|
||||||
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
||||||
|
|||||||
-2
@@ -3167,8 +3167,6 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
// Set the timer of last position update to now
|
// Set the timer of last position update to now
|
||||||
m._moveTimestamp = gameTicks;
|
m._moveTimestamp = gameTicks;
|
||||||
|
|
||||||
// Send a Server->Client packet MoveToLocation to the actor and all known PlayerInstance.
|
|
||||||
broadcastMoveToLocation();
|
|
||||||
if (distFraction > 1)
|
if (distFraction > 1)
|
||||||
{
|
{
|
||||||
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
||||||
|
|||||||
@@ -3155,8 +3155,6 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
// Set the timer of last position update to now
|
// Set the timer of last position update to now
|
||||||
m._moveTimestamp = gameTicks;
|
m._moveTimestamp = gameTicks;
|
||||||
|
|
||||||
// Send a Server->Client packet MoveToLocation to the actor and all known PlayerInstance.
|
|
||||||
broadcastMoveToLocation();
|
|
||||||
if (distFraction > 1)
|
if (distFraction > 1)
|
||||||
{
|
{
|
||||||
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
||||||
|
|||||||
-2
@@ -3170,8 +3170,6 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
// Set the timer of last position update to now
|
// Set the timer of last position update to now
|
||||||
m._moveTimestamp = gameTicks;
|
m._moveTimestamp = gameTicks;
|
||||||
|
|
||||||
// Send a Server->Client packet MoveToLocation to the actor and all known PlayerInstance.
|
|
||||||
broadcastMoveToLocation();
|
|
||||||
if (distFraction > 1)
|
if (distFraction > 1)
|
||||||
{
|
{
|
||||||
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
||||||
|
|||||||
@@ -3177,8 +3177,6 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
// Set the timer of last position update to now
|
// Set the timer of last position update to now
|
||||||
m._moveTimestamp = gameTicks;
|
m._moveTimestamp = gameTicks;
|
||||||
|
|
||||||
// Send a Server->Client packet MoveToLocation to the actor and all known PlayerInstance.
|
|
||||||
broadcastMoveToLocation();
|
|
||||||
if (distFraction > 1)
|
if (distFraction > 1)
|
||||||
{
|
{
|
||||||
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
ThreadPool.execute(() -> getAI().notifyEvent(CtrlEvent.EVT_ARRIVED));
|
||||||
|
|||||||
Reference in New Issue
Block a user