From 186d5b5cc59e29283e325776b5b464e435a1d996 Mon Sep 17 00:00:00 2001 From: Filip Maj Date: Sat, 24 Jun 2017 16:29:13 -0400 Subject: [PATCH] Had a bug where actor id was set to the wrong packet. Will have to also look at this target thing later. --- FFXIVClassic Map Server/actors/director/Director.cs | 6 +++--- FFXIVClassic Map Server/dataobjects/Session.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/FFXIVClassic Map Server/actors/director/Director.cs b/FFXIVClassic Map Server/actors/director/Director.cs index 5170c978..6007003f 100644 --- a/FFXIVClassic Map Server/actors/director/Director.cs +++ b/FFXIVClassic Map Server/actors/director/Director.cs @@ -105,9 +105,9 @@ namespace FFXIVClassic_Map_Server.actors.director { foreach (Player p in GetPlayerMembers()) { - GetSpawnPackets(actorId).DebugPrintPacket(); - p.QueuePacket(GetSpawnPackets(actorId)); - p.QueuePacket(GetInitPackets(actorId)); + GetSpawnPackets(p.actorId).DebugPrintPacket(); + p.QueuePacket(GetSpawnPackets(p.actorId)); + p.QueuePacket(GetInitPackets(p.actorId)); } } } diff --git a/FFXIVClassic Map Server/dataobjects/Session.cs b/FFXIVClassic Map Server/dataobjects/Session.cs index 5a83c565..8c35d6dd 100644 --- a/FFXIVClassic Map Server/dataobjects/Session.cs +++ b/FFXIVClassic Map Server/dataobjects/Session.cs @@ -38,7 +38,7 @@ namespace FFXIVClassic_Map_Server.dataobjects public void QueuePacket(SubPacket subPacket, bool isAuthed, bool isEncrypted) { - subPacket.header.targetId = id; + //subPacket.header.targetId = id; Server.GetWorldConnection().QueuePacket(subPacket, isAuthed, isEncrypted); }