1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-11-17 00:19:43 +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 committed by Ethan Lee
parent 3469a44489
commit e78de4662c

View file

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