mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-19 15:20:27 +00:00
fixed confirmation required when saving from menu
This commit is contained in:
parent
9ccf82d9dc
commit
5ec818a820
@ -275,7 +275,8 @@ void showMainMenu() {
|
|||||||
else if(uni == 'r' || sym == SDLK_F5) dialog::do_if_confirmed([] {
|
else if(uni == 'r' || sym == SDLK_F5) dialog::do_if_confirmed([] {
|
||||||
restart_game();
|
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
|
#if ISMOBILE
|
||||||
extern void openURL();
|
extern void openURL();
|
||||||
openURL();
|
openURL();
|
||||||
@ -283,6 +284,8 @@ void showMainMenu() {
|
|||||||
quitmainloop = true;
|
quitmainloop = true;
|
||||||
#endif
|
#endif
|
||||||
});
|
});
|
||||||
|
else quitmainloop = true;
|
||||||
|
}
|
||||||
else if(uni == 'o') {
|
else if(uni == 'o') {
|
||||||
clearMessages();
|
clearMessages();
|
||||||
get_o_key().second();
|
get_o_key().second();
|
||||||
|
Loading…
Reference in New Issue
Block a user