1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-07 21:06: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

@@ -1301,6 +1301,7 @@ int hk =
discoveries.clear();
})
#endif
#if CAP_COMMANDLINE
+ addHook(hooks_args, 0, [] {
using namespace arg;
if(0) ;
@@ -1309,7 +1310,9 @@ int hk =
else if(argis("-q3-limitv")) { shift(); limitv = argi(); }
else return 1;
return 0;
});
})
#endif
+ 0;
EX purehookset on_geometry_change;