mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-10 14:34:32 +02:00
added a bit of targetfind stuff
This commit is contained in:
parent
c55c0b327d
commit
4ed8f3e5e2
3 changed files with 125 additions and 2 deletions
|
@ -150,7 +150,7 @@ namespace FFXIVClassic_Map_Server.Actors
|
|||
return spawnPacket;
|
||||
}
|
||||
|
||||
public SubPacket CreatePositionUpdatePacket()
|
||||
public SubPacket CreatePositionUpdatePacket(bool forceUpdate = false)
|
||||
{
|
||||
int updateMs = 300;
|
||||
var diffTime = (DateTime.Now - lastMoveUpdate);
|
||||
|
@ -160,7 +160,7 @@ namespace FFXIVClassic_Map_Server.Actors
|
|||
updateMs = 150;
|
||||
}
|
||||
|
||||
if (hasMoved && ((this is Player ) || diffTime.Milliseconds >= updateMs))
|
||||
if (forceUpdate || (hasMoved && ((this is Player ) || diffTime.Milliseconds >= updateMs)))
|
||||
{
|
||||
hasMoved = (this.positionUpdates != null && this.positionUpdates.Count > 0);
|
||||
if (hasMoved)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue