1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-08-28 08:22:18 +00:00

fixes in the peace/exploration menu

This commit is contained in:
Zeno Rogue 2025-08-05 09:37:01 +02:00
parent a6114f2a04
commit f39e3b1c89

View File

@ -1394,7 +1394,7 @@ EX namespace peace {
if(true) {
dialog::addBreak(100);
dialog::addBoolItem(XLAT("puzzles"), otherpuzzles, '1');
dialog::addBoolItem(XLAT("puzzles"), otherpuzzles && !explore_other, '1');
dialog::add_action([] { otherpuzzles = true; explore_other = false; });
dialog::addBoolItem(XLAT("exploration"), explore_other, '2');
dialog::add_action([] { otherpuzzles = true; explore_other = true; });
@ -1467,8 +1467,11 @@ EX namespace peace {
});
dialog::addItem(XLAT("Return to the normal game"), '0');
dialog::add_action([] {
stop_game();
if(peace::on) stop_game_and_switch_mode(rg::peace);
if(peace::on) {
stop_game();
if(peace::on) stop_game_and_switch_mode(rg::peace);
start_game();
}
});
dialog::addBack();