1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-10 06:16:00 +00:00

added missing CAP_COMMANDLINE guards

This commit is contained in:
Zeno Rogue
2020-04-06 08:38:05 +02:00
parent 9a84dfb497
commit 1b9cdab98c
5 changed files with 12 additions and 2 deletions

View File

@@ -266,6 +266,7 @@ EX void wfc_menu() {
dialog::display();
}
#if CAP_COMMANDLINE
auto wfc_hook =
// addHook(hooks_handleKey, 100, wfc_handleKey) +
addHook(hooks_args, 100, [] {
@@ -285,6 +286,7 @@ auto wfc_hook =
else return 1;
return 0;
});
#endif
auto cgm = addHook(clearmemory, 40, [] () { centers.clear(); }) + addHook(hooks_removecells, 0, [] () { eliminate_if(centers, is_cell_removed); });