mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 09:28:15 +03:00
Fix the campaign trinket count missing from stats
PR #1226 tweaks both the crew and the stats screens. When there's no trinkets in the level, it removes the trinket count from the STATS screen in the menu. This, however, is missing a `custommode` check, meaning that the main game is ALSO missing the trinket count. This PR fixes that oversight.
This commit is contained in:
@@ -3198,9 +3198,12 @@ void maprender(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Stats. */
|
/* Stats. */
|
||||||
int deaths_pos = (cl.numtrinkets() > 0) ? 102 : 72;
|
|
||||||
int time_pos = (cl.numtrinkets() > 0) ? 152 : 132;
|
// Always show trinkets if you're in the main game, otherwise only show them if any exist in the level
|
||||||
if (cl.numtrinkets() > 0)
|
bool show_trinkets = map.custommode ? (cl.numtrinkets() > 0) : true;
|
||||||
|
int deaths_pos = show_trinkets ? 102 : 72;
|
||||||
|
int time_pos = show_trinkets ? 152 : 132;
|
||||||
|
if (show_trinkets)
|
||||||
{
|
{
|
||||||
font::print(PR_CEN | FLIP_PR_CJK_HIGH, -1, FLIP(52, 8), loc::gettext("[Trinkets found]"), 196, 196, 255 - help.glow);
|
font::print(PR_CEN | FLIP_PR_CJK_HIGH, -1, FLIP(52, 8), loc::gettext("[Trinkets found]"), 196, 196, 255 - help.glow);
|
||||||
char buffer[SCREEN_WIDTH_CHARS + 1];
|
char buffer[SCREEN_WIDTH_CHARS + 1];
|
||||||
|
|||||||
Reference in New Issue
Block a user