- fixed automap marks placement with custom fonts

Automap rotation wasn't taken into account when drawing marks

https://forum.zdoom.org/viewtopic.php?t=63693
This commit is contained in:
alexey.lysiuk 2019-02-15 17:21:59 +02:00 committed by drfrag
parent f5f1564f69
commit 842dff300e

View file

@ -3156,7 +3156,15 @@ void AM_drawMarks ()
else
{
char numstr[2] = { char('0' + i), 0 };
screen->DrawText(font, am_markcolor, CXMTOF(markpoints[i].x), CYMTOF(markpoints[i].y), numstr, TAG_DONE);
double x = markpoints[i].x;
double y = markpoints[i].y;
if (am_rotate == 1 || (am_rotate == 2 && viewactive))
{
AM_rotatePoint (&x, &y);
}
screen->DrawText(font, am_markcolor, CXMTOF(x), CYMTOF(y), numstr, TAG_DONE);
}
}
}