From 5a9cd861efc0cb6882387fc10fdfaf1a833cd8e4 Mon Sep 17 00:00:00 2001 From: Misa Date: Sun, 5 Apr 2020 14:55:45 -0700 Subject: [PATCH] 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. --- desktop_version/src/Entity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop_version/src/Entity.cpp b/desktop_version/src/Entity.cpp index 849a8237..e054c263 100644 --- a/desktop_version/src/Entity.cpp +++ b/desktop_version/src/Entity.cpp @@ -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; }