From 269ad18b86dbe5bc70110873f30d2df46a9c19f8 Mon Sep 17 00:00:00 2001 From: Misa Date: Sat, 9 May 2020 11:53:41 -0700 Subject: [PATCH] Call game.savestats() when setting new Super Gravitron record This is to be extra safe and ensure that your hard-earned record isn't lost at all. In 2.2, the game didn't save your Super Gravitron record at all. It only saved it if you closed the game by quitting to the title screen and pressing ACTION on "quit game". You couldn't press Alt+F4, and you couldn't press X, you had to do it that way, otherwise your record would be lost. In 2.3 right now, the game WILL save your unlock.vvv when you close the game gracefully by any means, but this still means that if it doesn't otherwise close gracefully (like, say, a crash), it won't save your record. It feels like we shouldn't rely on this catch-all saving to save Super Gravitron records. --- desktop_version/src/Logic.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/desktop_version/src/Logic.cpp b/desktop_version/src/Logic.cpp index 92e2e853..3d1771e2 100644 --- a/desktop_version/src/Logic.cpp +++ b/desktop_version/src/Logic.cpp @@ -396,6 +396,7 @@ void gamelogic() if (game.swnmessage == 0) music.playef(25); game.swnmessage = 1; game.swnrecord = game.swntimer; + game.savestats(); } } }