mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-07-07 11:35:00 +00: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:
parent
c1eaeca9f6
commit
2ee5aef3fa
1 changed files with 6 additions and 3 deletions
|
@ -3198,9 +3198,12 @@ void maprender(void)
|
|||
}
|
||||
|
||||
/* Stats. */
|
||||
int deaths_pos = (cl.numtrinkets() > 0) ? 102 : 72;
|
||||
int time_pos = (cl.numtrinkets() > 0) ? 152 : 132;
|
||||
if (cl.numtrinkets() > 0)
|
||||
|
||||
// Always show trinkets if you're in the main game, otherwise only show them if any exist in the level
|
||||
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);
|
||||
char buffer[SCREEN_WIDTH_CHARS + 1];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue