From 61742ee3a9bbd55251af82dccd39ded9052bcc96 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Sun, 17 Jun 2012 03:28:04 +0000 Subject: [PATCH] - Fixed: Heightsecs with SECF_FAKEFLOORONLY set should not clip sprites to the fake ceiling (since it doesn't really exist). SVN r3695 (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 bcd2a32e7..71bce068a 100644 --- a/src/r_things.cpp +++ b/src/r_things.cpp @@ -656,7 +656,7 @@ void R_ProjectSprite (AActor *thing, int fakeside, F3DFloor *fakefloor, F3DFloor { if (gzt < heightsec->floorplane.ZatPoint (fx, fy)) return; - if (gzb >= heightsec->ceilingplane.ZatPoint (fx, fy)) + if (!(heightsec->MoreFlags & SECF_FAKEFLOORONLY) && gzb >= heightsec->ceilingplane.ZatPoint (fx, fy)) return; } } @@ -1665,7 +1665,7 @@ void R_DrawSprite (vissprite_t *spr) hzb = MAX(hzb, hz); } } - if (spr->FakeFlatStat != FAKED_BelowFloor) + if (spr->FakeFlatStat != FAKED_BelowFloor && !(spr->heightsec->MoreFlags & SECF_FAKEFLOORONLY)) { fixed_t hz = spr->heightsec->ceilingplane.ZatPoint (spr->gx, spr->gy); fixed_t h = (centeryfrac - FixedMul (hz-viewz, scale)) >> FRACBITS;