1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-21 08:57:39 +00:00

added some missing CAP_ guards

This commit is contained in:
Zeno Rogue
2023-02-18 12:53:52 +01:00
parent 53483005cf
commit d108f27dcf
4 changed files with 24 additions and 0 deletions

View File

@@ -694,6 +694,7 @@ EX void world_list() {
switch_to(c);
dialog::end_list();
dialog::addBreak(100);
#if CAP_EDIT
dialog::addItem("add a saved world to the scene", 'a');
dialog::add_action([] {
dialog::openFileDialog(levelfile, XLAT("level to load:"), ".lev", [] () {
@@ -713,6 +714,7 @@ EX void world_list() {
}
});
});
#endif
dialog::addBack();
dialog::display();
}