Quick fix for bulk XTarget updates

This needs to be investigated more, but a 0 here for a valid mob
is bad.
This commit is contained in:
Michael Cook (mackal) 2016-11-03 14:31:09 -04:00
parent cbe53951f8
commit b1f97712f1

View File

@ -7272,7 +7272,8 @@ void Client::SendXTargetUpdates()
for (int i = 0; i < GetMaxXTargets(); ++i) { for (int i = 0; i < GetMaxXTargets(); ++i) {
if (XTargets[i].dirty) { if (XTargets[i].dirty) {
outapp->WriteUInt32(i); 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->WriteUInt32(XTargets[i].ID);
outapp->WriteString(XTargets[i].Name); outapp->WriteString(XTargets[i].Name);
count++; count++;