mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-14 04:37:10 +00:00
rogueviz::smoothcam:: do not crash if total_total == 0
This commit is contained in:
@@ -232,6 +232,8 @@ void handle_animation() {
|
|||||||
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);
|
||||||
t *= total_total;
|
t *= total_total;
|
||||||
|
|||||||
Reference in New Issue
Block a user