mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-22 08:49:46 +01:00
Fix MMMMMM and Flip Mode options ignoring save failure
In #553, when Dav999 added error messages to settings menus if the game was unable to successfully save the changed settings, he seemed to have forgotten the PPPPPP/MMMMMM toggle option. However, I can fully blame him for only that miss. The Flip Mode options were using game.savemystats (which was removed in #591), so if he searched for all instances of game.savestats() (game.savestatsandsettings() was only added in #557), he would've missed the game.savemystats. Later, when I did #591, I didn't realize that I should've replaced the ones in the Flip Mode options with game.savestatsandsettings_menu(), so part of the blame does fall on me. Anyways, this is fixed now.
This commit is contained in:
parent
be379733b6
commit
36e91a9bb1
1 changed files with 2 additions and 2 deletions
|
@ -176,7 +176,7 @@ static void updatebuttonmappings(int bind)
|
||||||
static void toggleflipmode(void)
|
static void toggleflipmode(void)
|
||||||
{
|
{
|
||||||
graphics.setflipmode = !graphics.setflipmode;
|
graphics.setflipmode = !graphics.setflipmode;
|
||||||
game.savestatsandsettings();
|
game.savestatsandsettings_menu();
|
||||||
if (graphics.setflipmode)
|
if (graphics.setflipmode)
|
||||||
{
|
{
|
||||||
music.playef(18);
|
music.playef(18);
|
||||||
|
@ -756,7 +756,7 @@ static void menuactionpress(void)
|
||||||
{
|
{
|
||||||
music.play(music.currentsong);
|
music.play(music.currentsong);
|
||||||
}
|
}
|
||||||
game.savestatsandsettings();
|
game.savestatsandsettings_menu();
|
||||||
}
|
}
|
||||||
|
|
||||||
offset += mmmmmm_offset;
|
offset += mmmmmm_offset;
|
||||||
|
|
Loading…
Reference in a new issue