From 3362902396f472d0d228c4181fe34f5561bbaa52 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Thu, 4 Aug 2016 00:03:05 +0300 Subject: [PATCH] Update position after changing cell (for real) --- apps/openmw/mwmp/LocalPlayer.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwmp/LocalPlayer.cpp b/apps/openmw/mwmp/LocalPlayer.cpp index ca5d4fc30..656672f8a 100644 --- a/apps/openmw/mwmp/LocalPlayer.cpp +++ b/apps/openmw/mwmp/LocalPlayer.cpp @@ -155,8 +155,8 @@ void LocalPlayer::setCell() world->changeToExteriorCell(pos, true); world->fixPosition(player); } - else { - + else + { world->findInteriorPosition(GetCell()->mName, pos); world->changeToInteriorCell(GetCell()->mName, pos, true); } @@ -390,6 +390,8 @@ void LocalPlayer::updateCell(bool forceUpdate) RakNet::BitStream bs; GetNetworking()->GetPacket((RakNet::MessageID) ID_GAME_CELL)->Packet(&bs, this, true); GetNetworking()->SendData(&bs); + + updatePosition(true); } }