mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-02 19:42:05 -04:00
Removed oooold test code.
This commit is contained in:
parent
ddfc71d3af
commit
151756329c
@ -96,29 +96,11 @@ namespace FFXIVClassic_Map_Server.dataobjects
|
|||||||
//Remove missing actors
|
//Remove missing actors
|
||||||
for (int i = 0; i < actorInstanceList.Count; i++)
|
for (int i = 0; i < actorInstanceList.Count; i++)
|
||||||
{
|
{
|
||||||
if (list.Contains(actorInstanceList[i]) && actorInstanceList[i] is Npc)
|
|
||||||
{
|
|
||||||
Npc npc = (Npc)actorInstanceList[i];
|
|
||||||
|
|
||||||
|
|
||||||
long milliseconds = DateTime.Now.Ticks / TimeSpan.TicksPerMillisecond;
|
|
||||||
|
|
||||||
|
|
||||||
if (npc.GetUniqueId().Equals("1") && milliseconds - lastMilis > 1000)
|
|
||||||
{
|
|
||||||
lastMilis = milliseconds;
|
|
||||||
QueuePacket(RemoveActorPacket.BuildPacket(actorInstanceList[i].actorId));
|
|
||||||
actorInstanceList.RemoveAt(i);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!list.Contains(actorInstanceList[i]))
|
if (!list.Contains(actorInstanceList[i]))
|
||||||
{
|
{
|
||||||
QueuePacket(RemoveActorPacket.BuildPacket(actorInstanceList[i].actorId));
|
QueuePacket(RemoveActorPacket.BuildPacket(actorInstanceList[i].actorId));
|
||||||
actorInstanceList.RemoveAt(i);
|
actorInstanceList.RemoveAt(i);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//Add new actors or move
|
//Add new actors or move
|
||||||
|
Loading…
Reference in New Issue
Block a user