forked from mirror/openmw-tes3mp
Hotfix for not being able to scroll the world map
This commit is contained in:
parent
083bcaf483
commit
81a9dc0655
1 changed files with 2 additions and 4 deletions
|
@ -425,16 +425,14 @@ namespace MWGui
|
||||||
|
|
||||||
void LocalMapBase::setPlayerPos(int cellX, int cellY, const float nx, const float ny)
|
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);
|
MyGUI::IntPoint pos(widgetSize+nx*widgetSize-16, widgetSize+ny*widgetSize-16);
|
||||||
pos.left += (cellX - mCurX) * widgetSize;
|
pos.left += (cellX - mCurX) * widgetSize;
|
||||||
pos.top -= (cellY - mCurY) * widgetSize;
|
pos.top -= (cellY - mCurY) * widgetSize;
|
||||||
|
|
||||||
if (pos != mCompass->getPosition())
|
if (pos != mCompass->getPosition())
|
||||||
{
|
{
|
||||||
|
notifyPlayerUpdate ();
|
||||||
|
|
||||||
mCompass->setPosition(pos);
|
mCompass->setPosition(pos);
|
||||||
MyGUI::IntPoint middle (pos.left+16, pos.top+16);
|
MyGUI::IntPoint middle (pos.left+16, pos.top+16);
|
||||||
MyGUI::IntCoord viewsize = mLocalMap->getCoord();
|
MyGUI::IntCoord viewsize = mLocalMap->getCoord();
|
||||||
|
|
Loading…
Reference in a new issue