From 2f736fb28cfcae5c35be6098cdc0d80141faaeda Mon Sep 17 00:00:00 2001 From: Alug Date: Sat, 19 Apr 2025 01:25:37 +0200 Subject: [PATCH] a --- src/r_things.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/r_things.c b/src/r_things.c index 44720585c..31fddc550 100644 --- a/src/r_things.c +++ b/src/r_things.c @@ -1522,7 +1522,11 @@ static void R_ProjectSprite(mobj_t *thing) } // Compatibility with MSVC - SSNTails - scalestep = ((yscale2 - yscale)/range) ?: 1; + scalestep = ((yscale2 - yscale)/range); + + if (scalestep == 0) + scalestep = 1; + xscale = FixedDiv(range<