forked from mirror/openmw-tes3mp
[Server] Fix Cell::sendToLoaded() part 2, and fix Player::sendToLoaded()
This commit is contained in:
parent
8616323bae
commit
c6c0e4acc9
2 changed files with 2 additions and 3 deletions
|
@ -69,10 +69,9 @@ void Cell::sendToLoaded(mwmp::WorldPacket *worldPacket, mwmp::BaseEvent *baseEve
|
||||||
if (pl->guid == baseEvent->guid) continue;
|
if (pl->guid == baseEvent->guid) continue;
|
||||||
|
|
||||||
worldPacket->setEvent(baseEvent);
|
worldPacket->setEvent(baseEvent);
|
||||||
worldPacket->setGUID(pl->guid);
|
|
||||||
|
|
||||||
// Send the packet to this eligible 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;
|
if (pl == this) continue;
|
||||||
myPacket->setPlayer(this);
|
myPacket->setPlayer(this);
|
||||||
myPacket->Send();
|
myPacket->Send(pl->guid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue