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

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.
This commit is contained in:
Misa 2020-05-09 11:53:41 -07:00 committed by Ethan Lee
parent f585d53955
commit 269ad18b86

View file

@ -396,6 +396,7 @@ void gamelogic()
if (game.swnmessage == 0) music.playef(25);
game.swnmessage = 1;
game.swnrecord = game.swntimer;
game.savestats();
}
}
}