From cead718d8192fafc8a6055438a4a01882d0b0146 Mon Sep 17 00:00:00 2001 From: toaster Date: Sun, 13 Oct 2019 11:53:53 +0100 Subject: [PATCH] Additional crash fix for papersprites. --- src/r_things.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/r_things.c b/src/r_things.c index 2ecd116ea..62a8100d9 100644 --- a/src/r_things.c +++ b/src/r_things.c @@ -1230,7 +1230,7 @@ static void R_ProjectSprite(mobj_t *thing) else range = 1; - scalestep = (yscale2 - yscale)/range; + scalestep = (yscale2 - yscale)/range ?: 1; // The following two are alternate sorting methods which might be more applicable in some circumstances. TODO - maybe enable via MF2? // sortscale = max(yscale, yscale2);