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

This commit is contained in:
Zeno Rogue
2021-04-07 18:13:45 +02:00
parent af28dd98da
commit 408a49dfe9
4 changed files with 11 additions and 32 deletions
+1 -8
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