1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 17:49:43 +01:00

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 2020-04-05 14:55:45 -07:00 committed by Ethan Lee
parent 7f0db19abd
commit 5a9cd861ef

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;
}