Fix "Thanks for playing!" reversed in Flip Mode

For localization, the "Thanks for playing!" text was split into two
lines, when it was originally one line. Unfortunately, it was not
updated to account for Flip Mode, so in Flip Mode, it looked like
"playing! Thanks for".

This has been fixed.
This commit is contained in:
Misa authored and Misa Elizabeth Kai committed 2024-05-25 23:33:45 -07:00
1 parent 4b2b4fb7c9
commit ff6bb68f3a
1 file changed
+14 -2
+14 -2
View File
@@ -2135,9 +2135,21 @@ void gamecompleterender(void)
creditOffset += 140;
if (graphics.onscreen(creditOffset + position))
{
font::print(PR_2X | PR_CEN | PR_CJK_HIGH, -1, creditOffset + position, loc::gettext("Thanks for"), tr, tg, tb);
const char* line1;
const char* line2;
if (graphics.flipmode)
{
line1 = loc::gettext("playing!");
line2 = loc::gettext("Thanks for");
}
else
{
line1 = loc::gettext("Thanks for");
line2 = loc::gettext("playing!");
}
font::print(PR_2X | PR_CEN | PR_CJK_HIGH, -1, creditOffset + position, line1, tr, tg, tb);
creditOffset += 20;
font::print(PR_2X | PR_CEN | PR_CJK_LOW, -1, creditOffset + position, loc::gettext("playing!"), tr, tg, tb);
font::print(PR_2X | PR_CEN | PR_CJK_LOW, -1, creditOffset + position, line2, tr, tg, tb);
}
draw_skip_message();