1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 01:00:25 +00:00

export ptick

This commit is contained in:
Zeno Rogue 2019-05-11 15:22:00 +02:00
parent 889bf3448c
commit 22ce25c396
2 changed files with 2 additions and 1 deletions

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;
}

View File

@ -5079,5 +5079,6 @@ extern bool first_cell_to_draw;
extern int current_rbuffer;
extern bool new_projection_needed;
inline void reset_projection() { new_projection_needed = true; }
extern ld ptick(int period, ld phase = 0);
}