diff --git a/rogueviz/smoothcam.cpp b/rogueviz/smoothcam.cpp index 548c95d3..77dd0501 100644 --- a/rogueviz/smoothcam.cpp +++ b/rogueviz/smoothcam.cpp @@ -231,6 +231,8 @@ void handle_animation() { totals.push_back(total); total_total += total; } + + if(total_total == 0) return; ld t = ticks / anims::period; t = frac(t);