Fix a bug in marker placement for interior maps

This commit is contained in:
scrawl 2014-05-10 23:47:00 +02:00
parent b358cf2423
commit dab4db87ff

View file

@ -160,8 +160,9 @@ namespace MWGui
markerPos.cellX = cellX;
markerPos.cellY = cellY;
widgetPos = MyGUI::IntPoint(nX * 512 + (1+cellX-mCurX) * 512,
nY * 512 + (1+cellY-mCurY) * 512);
// Image space is -Y up, cells are Y up
widgetPos = MyGUI::IntPoint(nX * 512 + (1+(cellX-mCurX)) * 512,
nY * 512 + (1-(cellY-mCurY)) * 512);
}
markerPos.nX = nX;