1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 09:39:43 +01:00

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 2024-03-31 22:46:56 -07:00 committed by Misa Elizabeth Kai
parent 4b2b4fb7c9
commit ff6bb68f3a

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();