mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
fixed crash on updating controller for npcs
- fixed updating player movement
This commit is contained in:
1 parent
62055eff04
commit
e56238a10c
4 files changed
+8
-5
No files matched your search
@@ -68,6 +68,9 @@ namespace FFXIVClassic_Map_Server.dataobjects
|
||||
if (isUpdatesLocked)
|
||||
return;
|
||||
|
||||
if (playerActor.positionX == x && playerActor.positionY == y && playerActor.positionZ == z && playerActor.rotation == rot)
|
||||
return;
|
||||
|
||||
playerActor.oldPositionX = playerActor.positionX;
|
||||
playerActor.oldPositionY = playerActor.positionY;
|
||||
playerActor.oldPositionZ = playerActor.positionZ;
|
||||
@@ -80,8 +83,9 @@ namespace FFXIVClassic_Map_Server.dataobjects
|
||||
playerActor.moveState = moveState;
|
||||
|
||||
GetActor().zone.UpdateActorPosition(GetActor());
|
||||
|
||||
playerActor.QueuePositionUpdate(new Vector3(x,y,z));
|
||||
}
|
||||
|
||||
long lastMilis = 0;
|
||||
public void UpdateInstance(List<Actor> list)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user