mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
cleaned up some of my retard with deltaTime and changed to DateTime for convenience swapping between seconds/milliseconds
This commit is contained in:
@@ -526,12 +526,12 @@ namespace FFXIVClassic_Map_Server.Actors
|
||||
return null;
|
||||
}
|
||||
|
||||
public void Update(double deltaTime)
|
||||
public void Update(DateTime tick)
|
||||
{
|
||||
lock (mActorList)
|
||||
{
|
||||
foreach (Actor a in mActorList.Values)
|
||||
a.Update(deltaTime);
|
||||
a.Update(tick);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -163,11 +163,11 @@ namespace FFXIVClassic_Map_Server.actors.area
|
||||
}
|
||||
}
|
||||
|
||||
public void Update(double deltaTime)
|
||||
public void Update(DateTime tick)
|
||||
{
|
||||
// todo: again, this is retarded but debug stuff
|
||||
var diffTime = DateTime.Now - lastUpdate;
|
||||
base.Update(deltaTime);
|
||||
var diffTime = tick - lastUpdate;
|
||||
base.Update(tick);
|
||||
|
||||
// arbitrary cap
|
||||
if (diffTime.Milliseconds >= 33)
|
||||
|
Reference in New Issue
Block a user