mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 01:00:25 +00:00
'land structure' selector now displays OFF if the default structure is selected
This commit is contained in:
parent
ce11319968
commit
60c1e0f8f3
13
menus.cpp
13
menus.cpp
@ -675,7 +675,18 @@ EX void mode_higlights() {
|
||||
}
|
||||
|
||||
EX void menuitem_land_structure(char key) {
|
||||
dialog::addSelItem(XLAT("land structure"), land_structure_name(true), key);
|
||||
eLandStructure ls =
|
||||
bounded ? lsSingle :
|
||||
(tactic::on || princess::challenge) ? lsSingle :
|
||||
yendor::on ? yendor::get_land_structure() :
|
||||
specialland == laCanvas ? lsSingle :
|
||||
nice_walls_available() ? lsNiceWalls :
|
||||
lsNoWalls;
|
||||
|
||||
if(ls == land_structure)
|
||||
dialog::addBoolItem(XLAT("land structure"), false, key);
|
||||
else
|
||||
dialog::addSelItem(XLAT("land structure"), land_structure_name(true), key);
|
||||
dialog::add_action_push(show_chaos);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user