Remove map.customtrinkets

This variable's sole purpose is to copy ed.numtrinkets, even though ed
has always been a name that's been accessible globally. So let's not
dupe cope.
This commit is contained in:
Misa
2020-04-08 21:56:47 -07:00
committed by Ethan Lee
parent c077e51fb4
commit 85bd7d9a2d
5 changed files with 21 additions and 11 deletions

View File

@@ -1887,11 +1887,13 @@ void scriptclass::run()
graphics.textboxcenterx();
std::string usethisnum;
#if !defined(NO_CUSTOM_LEVELS)
if (map.custommode)
{
usethisnum = help.number(map.customtrinkets);
usethisnum = help.number(ed.numtrinkets);
}
else
#endif
{
usethisnum = "Twenty";
}