From b1f97712f1feb4f8b73a74342148bf833cba9496 Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Thu, 3 Nov 2016 14:31:09 -0400 Subject: [PATCH] Quick fix for bulk XTarget updates This needs to be investigated more, but a 0 here for a valid mob is bad. --- zone/client.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zone/client.cpp b/zone/client.cpp index 3f914d1ae..891591780 100644 --- a/zone/client.cpp +++ b/zone/client.cpp @@ -7272,7 +7272,8 @@ void Client::SendXTargetUpdates() for (int i = 0; i < GetMaxXTargets(); ++i) { if (XTargets[i].dirty) { outapp->WriteUInt32(i); - outapp->WriteUInt8(0); // no idea what this is + // MQ2 checks this for valid mobs, so 0 is bad here at least ... + outapp->WriteUInt8(XTargets[i].ID ? 1 : 0); outapp->WriteUInt32(XTargets[i].ID); outapp->WriteString(XTargets[i].Name); count++;