- when drawing skies on walls where both sides are sky, use the backside's texture.

This fixes a sky anomaly in RR's E1L1.
This commit is contained in:
Christoph Oelckers 2021-04-08 09:45:17 +02:00
parent 4cdc39c9b9
commit d348377bd8

View file

@ -185,6 +185,7 @@ void HWWall::SkyTop(HWDrawInfo *di, walltype * seg,sectortype * fs,sectortype *
// if the back sector is closed the sky must be drawn! // if the back sector is closed the sky must be drawn!
if (c1 > f1 || c2 > f2) return; if (c1 > f1 || c2 > f2) return;
fs = bs; // draw sky from the backsector.
} }
flags |= HWF_SKYHACK; // mid textures on such lines need special treatment! flags |= HWF_SKYHACK; // mid textures on such lines need special treatment!
@ -241,6 +242,7 @@ void HWWall::SkyBottom(HWDrawInfo *di, walltype * seg,sectortype * fs,sectortype
if (c1 > f1 || c2 > f2) return; if (c1 > f1 || c2 > f2) return;
} }
flags |= HWF_SKYHACK; // mid textures on such lines need special treatment! flags |= HWF_SKYHACK; // mid textures on such lines need special treatment!
fs = bs; // draw sky from the backsector.
} }
else return; else return;