mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-10-31 19:36:16 +00:00
intra:: CLI command -walk-on
This commit is contained in:
parent
73738226dd
commit
0e39a8a485
@ -1032,7 +1032,14 @@ auto a = addHook(hooks_configfile, 100, [] {
|
|||||||
"1 = the angle can be changed with keyboard or mouse movements, 0 = the angle is fixed",
|
"1 = the angle can be changed with keyboard or mouse movements, 0 = the angle is fixed",
|
||||||
'k');
|
'k');
|
||||||
})
|
})
|
||||||
+ addHook(hooks_clearmemory, 40, [] { on_floor_of = nullptr; floor_dir = -1; });
|
+ addHook(hooks_clearmemory, 40, [] { on_floor_of = nullptr; floor_dir = -1; })
|
||||||
|
+ arg::add3("-walk-on", [] {
|
||||||
|
on = true;
|
||||||
|
if(auto_eyelevel) eye_level = -1;
|
||||||
|
floor_dir = -1;
|
||||||
|
on_floor_of = nullptr;
|
||||||
|
ticks_last = ticks_end = ticks;
|
||||||
|
});
|
||||||
|
|
||||||
EX }
|
EX }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user