Don't update game.stat_trinkets in custom levels

Whenever you collect a trinket, game.stat_trinkets gets updated (if
applicable) to signify the greatest amount of trinkets you have ever
collected in the game. However, custom levels shouldn't be able to
affect this, as their trinkets are not the same trinkets as the main
game.
This commit is contained in:
Misa authored and Ethan Lee committed 2020-04-05 18:31:03 -04:00
1 parent 7f0db19abd
commit 5a9cd861ef
1 file changed
+1 -1
+1 -1
View File
@@ -2521,7 +2521,7 @@ void entityclass::updateentities( int i )
if(music.currentsong!=-1) music.silencedasmusik();
music.playef(3);
collect[entities[i].para] = 1;
if (game.trinkets > game.stat_trinkets)
if (game.trinkets > game.stat_trinkets && !map.custommode)
{
game.stat_trinkets = game.trinkets;
}