1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-23 13:43:19 +00:00

fixed confirmation required when saving from menu

This commit is contained in:
Zeno Rogue 2019-01-07 04:52:11 +01:00
parent 9ccf82d9dc
commit 5ec818a820

View File

@ -275,14 +275,17 @@ void showMainMenu() {
else if(uni == 'r' || sym == SDLK_F5) dialog::do_if_confirmed([] {
restart_game();
});
else if(uni == 'q' || sym == SDLK_F10) dialog::do_if_confirmed([] {
else if(uni == 'q' || sym == SDLK_F10) {
if(needConfirmation()) dialog::do_if_confirmed([] {
#if ISMOBILE
extern void openURL();
openURL();
extern void openURL();
openURL();
#else
quitmainloop = true;
quitmainloop = true;
#endif
});
});
else quitmainloop = true;
}
else if(uni == 'o') {
clearMessages();
get_o_key().second();