Make sure eye os zomm updates are the actual eye

This commit is contained in:
Noudess 2019-10-23 13:58:52 -04:00
parent ff59255e63
commit 8f5bd52e24

View File

@ -4392,10 +4392,17 @@ void Client::Handle_OP_ClientUpdate(const EQApplicationPacket *app) {
// mob that gets updates from OP_ClientUpdate // mob that gets updates from OP_ClientUpdate
Mob *cmob = entity_list.GetMob(ppu->spawn_id); Mob *cmob = entity_list.GetMob(ppu->spawn_id);
if (cmob != nullptr) { if (cmob != nullptr) {
cmob->SetPosition(ppu->x_pos, ppu->y_pos, ppu->z_pos); // Make sure it's their eye..
cmob->SetHeading(EQ12toFloat(ppu->heading)); char eye_name[64];
mMovementManager->SendCommandToClients(cmob, 0.0, 0.0, 0.0, 0.0, 0, ClientRangeAny, nullptr, this); snprintf(eye_name, sizeof(eye_name),"Eye of %s",GetCleanName());
cmob->CastToNPC()->SaveGuardSpot(glm::vec4(ppu->x_pos, ppu->y_pos, ppu->z_pos, EQ12toFloat(ppu->heading))); if (!strcmp(eye_name, cmob->GetCleanName())) {
cmob->SetPosition(ppu->x_pos, ppu->y_pos, ppu->z_pos);
cmob->SetHeading(EQ12toFloat(ppu->heading));
mMovementManager->SendCommandToClients(cmob, 0.0, 0.0, 0.0,
0.0, 0, ClientRangeAny, nullptr, this);
cmob->CastToNPC()->SaveGuardSpot(glm::vec4(ppu->x_pos,
ppu->y_pos, ppu->z_pos, EQ12toFloat(ppu->heading)));
}
} }
} }
return; return;