diff --git a/src/r_things.c b/src/r_things.c index 90d5f3fd3..0def36d8a 100644 --- a/src/r_things.c +++ b/src/r_things.c @@ -1340,9 +1340,10 @@ static void R_ProjectSprite(mobj_t *thing) if ((range = x2 - x1) <= 0) return; + range++; // fencepost problem + scalestep = (yscale2 - yscale)/range; - scalestep = scalestep ? scalestep : 1; - xscale = FixedDiv(range<