1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-12 07:16:01 +00:00

replaced loop_multiplier and loop_shift with more general -animformula

This commit is contained in:
Zeno Rogue
2022-04-21 12:33:37 +02:00
parent 7e8ae4262f
commit 6e0960bb58
3 changed files with 17 additions and 9 deletions

View File

@@ -378,7 +378,7 @@ void enable() {
rogueviz::rv_hook(anims::hooks_anim, 100, [] {
if(!animation) return;
ld t = ticks * 1. * anims::loop_multiplier / anims::period;
ld t = ticks * 1. / anims::period;
t *= isize(path);
hyperpoint at = interp(t);