mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 09:50:34 +00:00
shift_arg_formula now calls t automatically
This commit is contained in:
parent
cbb98c7899
commit
3e7f4374a6
@ -100,10 +100,11 @@ EX namespace arg {
|
||||
EX bool argis(const string& s) { if(args()[0] == '-' && args()[1] == '-') return args().substr(1) == s; return args() == s; }
|
||||
|
||||
EX void shift_arg_formula(ld& x, const reaction_t& r IS(reaction_t())) {
|
||||
shift(); x = argf();
|
||||
shift(); ld old = x; x = argf();
|
||||
#if CAP_ANIMATIONS
|
||||
anims::animate_parameter(x, args(), r);
|
||||
#endif
|
||||
if(old != x && r) r();
|
||||
}
|
||||
|
||||
#if HDR
|
||||
|
Loading…
Reference in New Issue
Block a user