1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-11-05 02:39:41 +01:00

deletestats: Properly reset bestgamedeaths

While I was testing deleting data while you were in-game, I noticed that
deleting data gave you all the "Win with less than X deaths" trophies,
even if you never got any of them before deleting data. Well, it turns
out that if you have the best game death count of 0, then you win every
trophy, and if you have the best game death count of -1 then that means
you haven't completed the game yet.

This reset was added in e3bfc79d4a, so at
least it's not in 2.3, but I only have myself to blame for making this
mistake. Whoops.
This commit is contained in:
Misa 2021-12-17 23:30:51 -08:00
parent 2770353142
commit cc9c71a94a

View file

@ -3990,7 +3990,7 @@ void Game::deletestats(void)
}
swnrecord = 0;
swnbestrank = 0;
bestgamedeaths = 0;
bestgamedeaths = -1;
#ifndef MAKEANDPLAY
graphics.setflipmode = false;
#endif