Fix centering of translated "Level Complete!" and "Game Complete!"

Operator precedence meant that `sc == 2 ? PR_2X : PR_1X | PR_CEN`
didn't work how I expected it to. So I added some parentheses.
This commit is contained in:
Dav999-v
2023-02-25 03:39:59 +01:00
committed by Misa Elizabeth Kai
parent 00279c0e04
commit 32e14755dd

View File

@@ -881,7 +881,7 @@ void Graphics::drawgui(void)
{
y = 240 - y - 8*sc;
}
font::print(sc==2 ? PR_2X : PR_1X | PR_CEN, -1, y, translation, 164, 164, 255);
font::print((sc==2 ? PR_2X : PR_1X) | PR_CEN, -1, y, translation, 164, 164, 255);
}
else
{
@@ -917,7 +917,7 @@ void Graphics::drawgui(void)
{
y = 240 - y - 8*sc;
}
font::print(sc==2 ? PR_2X : PR_1X | PR_CEN, -1, y, translation, 196, 196, 243);
font::print((sc==2 ? PR_2X : PR_1X) | PR_CEN, -1, y, translation, 196, 196, 243);
}
else
{