diff --git a/src/r_things.c b/src/r_things.c index c3a83880c..bf9b4e965 100644 --- a/src/r_things.c +++ b/src/r_things.c @@ -1241,7 +1241,7 @@ static void R_ProjectSprite(mobj_t *thing) tx = FixedMul(tr_x, viewsin) - FixedMul(tr_y, viewcos); // sideways distance // too far off the side? - if (!papersprite && abs(tx) > FixedMul(tz, fovtan)<<2) // papersprite clipping is handled later + if (!papersprite && abs(tx) > tz<<2) // papersprite clipping is handled later return; // aspect ratio stuff @@ -1518,10 +1518,7 @@ static void R_ProjectSprite(mobj_t *thing) } // Compatibility with MSVC - SSNTails - scalestep = ((yscale2 - yscale) / range); - if (!scalestep) - scalestep = 1; - + scalestep = ((yscale2 - yscale)/range) ?: 1; xscale = FixedDiv(range< FixedMul(tz, fovtan)<<2) + if (abs(tx) > tz<<2) return; // aspect ratio stuff :