[Server] Fix Cell::sendToLoaded() part 2, and fix Player::sendToLoaded()

0.6.1
David Cernat 8 years ago
parent 8616323bae
commit c6c0e4acc9

@ -69,10 +69,9 @@ void Cell::sendToLoaded(mwmp::WorldPacket *worldPacket, mwmp::BaseEvent *baseEve
if (pl->guid == baseEvent->guid) continue;
worldPacket->setEvent(baseEvent);
worldPacket->setGUID(pl->guid);
// Send the packet to this eligible guid
worldPacket->Send(false);
worldPacket->Send(pl->guid);
}
}

@ -159,7 +159,7 @@ void Player::sendToLoaded(mwmp::PlayerPacket *myPacket)
{
if (pl == this) continue;
myPacket->setPlayer(this);
myPacket->Send();
myPacket->Send(pl->guid);
}
}

Loading…
Cancel
Save