forked from teamnwah/openmw-tes3coop
[Server] Fix logic in Cell::sendToLoaded()
This commit is contained in:
parent
fae3bcaeeb
commit
8616323bae
1 changed files with 4 additions and 1 deletions
|
@ -67,9 +67,12 @@ void Cell::sendToLoaded(mwmp::WorldPacket *worldPacket, mwmp::BaseEvent *baseEve
|
||||||
for (auto pl : plList)
|
for (auto pl : plList)
|
||||||
{
|
{
|
||||||
if (pl->guid == baseEvent->guid) continue;
|
if (pl->guid == baseEvent->guid) continue;
|
||||||
|
|
||||||
worldPacket->setEvent(baseEvent);
|
worldPacket->setEvent(baseEvent);
|
||||||
worldPacket->setGUID(pl->guid);
|
worldPacket->setGUID(pl->guid);
|
||||||
worldPacket->Send();
|
|
||||||
|
// Send the packet to this eligible guid
|
||||||
|
worldPacket->Send(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue