From e78de4662c0292fe3a3542514a5bdc033308d4ba Mon Sep 17 00:00:00 2001 From: Misa Date: Fri, 17 Dec 2021 23:30:51 -0800 Subject: [PATCH] `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 e3bfc79d4a9e636b85aa4ed684931de1ef6f2eca, so at least it's not in 2.3, but I only have myself to blame for making this mistake. Whoops. --- desktop_version/src/Game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop_version/src/Game.cpp b/desktop_version/src/Game.cpp index 2abbb5c2..c0fc98be 100644 --- a/desktop_version/src/Game.cpp +++ b/desktop_version/src/Game.cpp @@ -4009,7 +4009,7 @@ void Game::deletestats(void) } swnrecord = 0; swnbestrank = 0; - bestgamedeaths = 0; + bestgamedeaths = -1; #ifndef MAKEANDPLAY graphics.setflipmode = false; #endif