Fix a bug in marker placement for interior maps

deque
scrawl 11 years ago
parent b358cf2423
commit dab4db87ff

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

Loading…
Cancel
Save