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

rogueviz::smoothcam:: do not crash if total_total == 0

This commit is contained in:
Zeno Rogue 2021-04-04 14:27:42 +02:00
parent e47f4fbba5
commit 6b5ed3e591

View File

@ -232,6 +232,8 @@ void handle_animation() {
total_total += total;
}
if(total_total == 0) return;
ld t = ticks / anims::period;
t = frac(t);
t *= total_total;