From 5e072b9d3c6513a27eb45f3e2cac892bef4eca9f Mon Sep 17 00:00:00 2001 From: Koncord Date: Sat, 30 Jul 2016 04:12:47 +0800 Subject: [PATCH] Update position after changing cell --- apps/openmw-mp/Script/Functions/Translocations.cpp | 4 ---- apps/openmw/mwmp/LocalPlayer.cpp | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/apps/openmw-mp/Script/Functions/Translocations.cpp b/apps/openmw-mp/Script/Functions/Translocations.cpp index dfe1be340..e8b329c5f 100644 --- a/apps/openmw-mp/Script/Functions/Translocations.cpp +++ b/apps/openmw-mp/Script/Functions/Translocations.cpp @@ -104,10 +104,6 @@ void ScriptFunctions::SetExterior(unsigned short pid, int x, int y) noexcept cout << "exterior: " << player->GetCell()->mCellId.mIndex.mX << ", " << player->GetCell()->mCellId.mIndex.mY; cout << " in to exterior cell \"" << x << ", " << y << "\"" << endl; - /*cout << "TEST1 : " << player->GetCell()->mData.mFlags << endl; - player->GetCell()->mData.mFlags &= ~1; - cout << "TEST2 : " << player->GetCell()->mData.mFlags << endl;*/ - player->GetCell()->mCellId.mIndex.mX = x; player->GetCell()->mCellId.mIndex.mY = y; diff --git a/apps/openmw/mwmp/LocalPlayer.cpp b/apps/openmw/mwmp/LocalPlayer.cpp index 6fc5fb0ed..fa0184d89 100644 --- a/apps/openmw/mwmp/LocalPlayer.cpp +++ b/apps/openmw/mwmp/LocalPlayer.cpp @@ -164,6 +164,7 @@ void LocalPlayer::setCell() } updateCell(true); + updatePosition(true); }