mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-08-29 16:57:56 +00:00
fixes in the peace/exploration menu
This commit is contained in:
@@ -1394,7 +1394,7 @@ EX namespace peace {
|
|||||||
|
|
||||||
if(true) {
|
if(true) {
|
||||||
dialog::addBreak(100);
|
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::add_action([] { otherpuzzles = true; explore_other = false; });
|
||||||
dialog::addBoolItem(XLAT("exploration"), explore_other, '2');
|
dialog::addBoolItem(XLAT("exploration"), explore_other, '2');
|
||||||
dialog::add_action([] { otherpuzzles = true; explore_other = true; });
|
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::addItem(XLAT("Return to the normal game"), '0');
|
||||||
dialog::add_action([] {
|
dialog::add_action([] {
|
||||||
stop_game();
|
if(peace::on) {
|
||||||
if(peace::on) stop_game_and_switch_mode(rg::peace);
|
stop_game();
|
||||||
|
if(peace::on) stop_game_and_switch_mode(rg::peace);
|
||||||
|
start_game();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
dialog::addBack();
|
dialog::addBack();
|
||||||
|
Reference in New Issue
Block a user