Quick sky fix 2

walls not extending down when a thok barrier has top textures and both
ceilings have sky.
This commit is contained in:
Sryder13 2014-09-09 23:57:12 +01:00
parent cee8fff7b3
commit 987f9f5c26
1 changed files with 1 additions and 1 deletions

View File

@ -1699,7 +1699,7 @@ static void HWR_StoreWallRange(double startfrac, double endfrac)
{
fixed_t depthwallheight;
if (!gr_sidedef->toptexture)
if (!gr_sidedef->toptexture || (gr_frontsector->ceilingpic == skyflatnum && gr_backsector->ceilingpic == skyflatnum)) // when both sectors are sky, the top texture isn't drawn
depthwallheight = gr_frontsector->ceilingheight < gr_backsector->ceilingheight ? gr_frontsector->ceilingheight : gr_backsector->ceilingheight;
else
depthwallheight = gr_frontsector->ceilingheight > gr_backsector->ceilingheight ? gr_frontsector->ceilingheight : gr_backsector->ceilingheight;