From 54163bc81cdf8d866e4e551a599b14d88a1ea36e Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Fri, 19 Nov 2010 04:01:15 +0000 Subject: [PATCH] - Changed sprite-on-drawseg calculations to use untransformed coordinates. Build does it like this. I don't recall what Doom did. SVN r3009 (trunk) --- src/r_things.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/r_things.cpp b/src/r_things.cpp index 600354ced..4d40c04cd 100644 --- a/src/r_things.cpp +++ b/src/r_things.cpp @@ -2231,8 +2231,8 @@ void R_DrawSprite (vissprite_t *spr) } if (neardepth > spr->depth || (fardepth > spr->depth && // Check if sprite is in front of draw seg: - DMulScale24 (spr->depth - ds->cy, ds->cdx, ds->cdy, ds->cx - spr->cx) < 0)) - + DMulScale32(spr->gy - ds->curline->v1->y, ds->curline->v2->x - ds->curline->v1->x, + ds->curline->v1->x - spr->gx, ds->curline->v2->y - ds->curline->v1->y) <= 0)) { // seg is behind sprite, so draw the mid texture if it has one if (ds->maskedtexturecol != -1 || ds->bFogBoundary)