1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-28 19:15:14 +00:00

arg:: used the new add::arg in some contexts

This commit is contained in:
Zeno Rogue
2021-03-31 02:58:03 +02:00
parent af28dd98da
commit 408a49dfe9
4 changed files with 11 additions and 32 deletions

View File

@@ -1077,14 +1077,7 @@ EX void viewmat() {
}
}
#if CAP_COMMANDLINE
auto floor_hook =
addHook(hooks_args, 100, [] () {
using namespace arg;
if(argis("-floordebug")) { floorshape_debug = true; return 0; }
else return 1;
});
#endif
auto floor_hook = arg::add1("-floordebug", [] { floorshape_debug = true; });
#endif
#if MAXMDIM < 4 || !CAP_GL