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<