mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01:00
Allow getting star if more trinkets than level trinkets
Previously, you would only get the trinket completion star if you got the exact same amount of trinkets as there are custom entity trinkets in the level file. But if you got more (say, if the level spawned extra "bonus trinkets"), you wouldn't be able to get the star. This is true of the custom crewmate case as well, but I've decided to not change that case, because there are still downsides to the resulting behavior and it's better to just leave it alone because it's rare for it to happen anyways.
This commit is contained in:
parent
448a99ca23
commit
71dfbc1860
1 changed files with 1 additions and 1 deletions
|
@ -1956,7 +1956,7 @@ void Game::updatestate(void)
|
|||
if(ed.numcrewmates()-crewmates()==0)
|
||||
{
|
||||
//Finished level
|
||||
if(ed.numtrinkets()-trinkets()==0)
|
||||
if (trinkets() >= ed.numtrinkets())
|
||||
{
|
||||
//and got all the trinkets!
|
||||
updatecustomlevelstats(customlevelfilename, 3);
|
||||
|
|
Loading…
Reference in a new issue