forked from mirror/openmw-tes3mp
Fix a bug in marker placement for interior maps
This commit is contained in:
parent
b358cf2423
commit
dab4db87ff
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue