mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
added a bit of targetfind stuff
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user