diff --git a/src/r_things.c b/src/r_things.c index bf9b4e965..f0f960d63 100644 --- a/src/r_things.c +++ b/src/r_things.c @@ -1518,7 +1518,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<