From 31e2ab54d62bb8bf0a936c553d37dcadc2ef4741 Mon Sep 17 00:00:00 2001 From: Koncord Date: Sat, 30 Jul 2016 04:12:47 +0800 Subject: [PATCH] Revert "Update position after changing cell" This reverts commit 5e072b9d3c6513a27eb45f3e2cac892bef4eca9f. --- apps/openmw-mp/Script/Functions/Translocations.cpp | 4 ++++ apps/openmw/mwmp/LocalPlayer.cpp | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/openmw-mp/Script/Functions/Translocations.cpp b/apps/openmw-mp/Script/Functions/Translocations.cpp index e8b329c5f..dfe1be340 100644 --- a/apps/openmw-mp/Script/Functions/Translocations.cpp +++ b/apps/openmw-mp/Script/Functions/Translocations.cpp @@ -104,6 +104,10 @@ 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 fa0184d89..6fc5fb0ed 100644 --- a/apps/openmw/mwmp/LocalPlayer.cpp +++ b/apps/openmw/mwmp/LocalPlayer.cpp @@ -164,7 +164,6 @@ void LocalPlayer::setCell() } updateCell(true); - updatePosition(true); }