From ccacc2390504a695daa28f49aba3d0c2c9fc639b Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 1 Feb 2017 00:20:08 +0100 Subject: [PATCH] - fixed division by 0 in ActorMover code. --- wadsrc/static/zscript/shared/movingcamera.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wadsrc/static/zscript/shared/movingcamera.txt b/wadsrc/static/zscript/shared/movingcamera.txt index 0fc50f3e2..15fdd0836 100644 --- a/wadsrc/static/zscript/shared/movingcamera.txt +++ b/wadsrc/static/zscript/shared/movingcamera.txt @@ -287,7 +287,7 @@ class PathFollower : Actor if (Interpolate ()) { - Time += (8. / (CurrNode.args[1] * TICRATE)); + Time += (8. / (max(1, CurrNode.args[1]) * TICRATE)); if (Time > 1.) { Time -= 1.;