diff --git a/src/r_things.c b/src/r_things.c index 634f425a68e953154ee2adb852015a8d4038d98f..fa2c54e6e9aa2fa655e67d7c224567690a45dc48 100644 --- a/src/r_things.c +++ b/src/r_things.c @@ -1561,7 +1561,7 @@ static void R_ProjectDropShadow(mobj_t *thing, vissprite_t *vis, fixed_t scale, yscale = FixedDiv(projectiony, tz); shadowxscale = FixedMul(interp.radius*2, scalemul); shadowyscale = FixedMul(FixedMul(interp.radius*2, scalemul), FixedDiv(abs(groundz - viewz), tz)); - shadowyscale = (cv_shadow.value == 2 ? (min(shadowyscale, shadowxscale) / patch->height): patch->height); + shadowyscale = min(shadowyscale, shadowxscale) / patch->height; shadowxscale /= patch->width; shadowskew = 0;