fixed some timers

- status icons now display (<3 u ion)
- todo: populate status tables, figure out why effect wont tick down for me
This commit is contained in:
Tahir Akhlaq 2017-07-27 03:58:42 +01:00
parent ddad27a5f9
commit 8bebba64b3
10 changed files with 55 additions and 35 deletions

View file

@ -43,6 +43,7 @@ namespace FFXIVClassic_Map_Server.Actors
public List<Vector3> positionUpdates = new List<Vector3>();
public DateTime lastMoveUpdate;
protected DateTime lastUpdate;
public Actor target;
public bool hasMoved = false;
@ -161,7 +162,7 @@ namespace FFXIVClassic_Map_Server.Actors
updateMs = 150;
}
if (forceUpdate || (hasMoved && ((this is Player) || diffTime.Milliseconds >= updateMs)))
if (forceUpdate || (hasMoved && ((this is Player) || diffTime.TotalMilliseconds >= updateMs)))
{
hasMoved = (this.positionUpdates != null && this.positionUpdates.Count > 0);
if (hasMoved)