mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01:00
Make foundtrinket() be accurate in custommode
Previously, if it was called in a custom level, it would say "out of Twenty" no matter what, even if the level had zero trinkets. This commit fixes that.
This commit is contained in:
parent
37507c147f
commit
a02d776b00
1 changed files with 10 additions and 1 deletions
|
@ -1892,7 +1892,16 @@ void scriptclass::run( KeyPoll& key, Graphics& dwgfx, Game& game, mapclass& map,
|
||||||
dwgfx.addline("You have found a shiny trinket!");
|
dwgfx.addline("You have found a shiny trinket!");
|
||||||
dwgfx.textboxcenterx();
|
dwgfx.textboxcenterx();
|
||||||
|
|
||||||
dwgfx.createtextbox(" " + help.number(game.trinkets) + " out of Twenty ", 50, 135, 174, 174, 174);
|
std::string usethisnum;
|
||||||
|
if (map.custommode)
|
||||||
|
{
|
||||||
|
usethisnum = help.number(map.customtrinkets);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
usethisnum = "Twenty";
|
||||||
|
}
|
||||||
|
dwgfx.createtextbox(" " + help.number(game.trinkets) + " out of " + usethisnum + " ", 50, 135, 174, 174, 174);
|
||||||
dwgfx.textboxcenterx();
|
dwgfx.textboxcenterx();
|
||||||
|
|
||||||
if (!game.backgroundtext)
|
if (!game.backgroundtext)
|
||||||
|
|
Loading…
Reference in a new issue