export ptick

This commit is contained in:
Zeno Rogue committed 2019-09-12 22:49:43 +02:00
1 parent 889bf3448c
commit 22ce25c396
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -29,7 +29,7 @@ purehookset hooks_frame, hooks_markers;
ld animation_factor = 1;
int animation_lcm = 0;
ld ptick(int period, ld phase = 0) {
ld ptick(int period, ld phase) {
if(animation_lcm) animation_lcm = animation_lcm * (period / gcd(animation_lcm, period));
return (ticks * animation_factor) / period + phase * 2 * M_PI;
}