From 81a9dc0655baf830b52447ed83a42b8c6d86e999 Mon Sep 17 00:00:00 2001 From: scrawl Date: Thu, 2 Oct 2014 22:44:06 +0200 Subject: [PATCH] Hotfix for not being able to scroll the world map --- apps/openmw/mwgui/mapwindow.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/openmw/mwgui/mapwindow.cpp b/apps/openmw/mwgui/mapwindow.cpp index 80a3c5ae4..0262c4d0e 100644 --- a/apps/openmw/mwgui/mapwindow.cpp +++ b/apps/openmw/mwgui/mapwindow.cpp @@ -425,16 +425,14 @@ namespace MWGui void LocalMapBase::setPlayerPos(int cellX, int cellY, const float nx, const float ny) { - updateMagicMarkers(); - - notifyPlayerUpdate (); - MyGUI::IntPoint pos(widgetSize+nx*widgetSize-16, widgetSize+ny*widgetSize-16); pos.left += (cellX - mCurX) * widgetSize; pos.top -= (cellY - mCurY) * widgetSize; if (pos != mCompass->getPosition()) { + notifyPlayerUpdate (); + mCompass->setPosition(pos); MyGUI::IntPoint middle (pos.left+16, pos.top+16); MyGUI::IntCoord viewsize = mLocalMap->getCoord();