NiGHTS Attack menu: Let patch offsets control the alignment of the top border.

This commit is contained in:
Jaime Passos 2019-08-20 21:45:55 -03:00
parent c6c0a9dd1a
commit f90a6540d6
1 changed files with 3 additions and 1 deletions

View File

@ -5261,7 +5261,9 @@ static void M_DrawNightsAttackBackground(void)
if (border_height > 0)
{
// top border
y = border_height - ((topborderheight-5) * vid.dupy);
INT16 yoffset = SHORT(topborder->topoffset);
y = border_height - ((topborderheight - yoffset) * vid.dupy);
y += (yoffset * dupy);
for (i = 0; i < (vid.height/border_height) + 1; i++)
{
for (j = 0; j < (vid.width/topborderwidth); j++)