mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-20 23:34:08 +00:00
rogueviz::smoothcam:: do not crash if total_total == 0
This commit is contained in:
parent
e47f4fbba5
commit
6b5ed3e591
@ -231,6 +231,8 @@ void handle_animation() {
|
|||||||
totals.push_back(total);
|
totals.push_back(total);
|
||||||
total_total += total;
|
total_total += total;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(total_total == 0) return;
|
||||||
|
|
||||||
ld t = ticks / anims::period;
|
ld t = ticks / anims::period;
|
||||||
t = frac(t);
|
t = frac(t);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user