From c6c0e4acc939dff1655d5c38bbfdb07493134396 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Thu, 6 Apr 2017 08:39:11 +0300 Subject: [PATCH] [Server] Fix Cell::sendToLoaded() part 2, and fix Player::sendToLoaded() --- apps/openmw-mp/Cell.cpp | 3 +-- apps/openmw-mp/Player.cpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/openmw-mp/Cell.cpp b/apps/openmw-mp/Cell.cpp index e3521b9cf..1dc7e5674 100644 --- a/apps/openmw-mp/Cell.cpp +++ b/apps/openmw-mp/Cell.cpp @@ -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); } } diff --git a/apps/openmw-mp/Player.cpp b/apps/openmw-mp/Player.cpp index 8b09eb8e4..e0265d65c 100644 --- a/apps/openmw-mp/Player.cpp +++ b/apps/openmw-mp/Player.cpp @@ -159,7 +159,7 @@ void Player::sendToLoaded(mwmp::PlayerPacket *myPacket) { if (pl == this) continue; myPacket->setPlayer(this); - myPacket->Send(); + myPacket->Send(pl->guid); } }