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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user