Skip to content

Commit

Permalink
Fixed: Missing fakeradio plane shadows for edges of two-sided linedef…
Browse files Browse the repository at this point in the history
…s with skymasked materials front and back but with a zero-height backsector. Caused due to an older test which attempted to handle the one-way window trick (now handled as a special case a few lines above).
  • Loading branch information
danij-deng committed Feb 23, 2011
1 parent d9ba2c8 commit 2e7be58
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions doomsday/engine/portable/src/rend_fakeradio.c
Expand Up @@ -1441,17 +1441,13 @@ static uint radioEdgeHackType(const linedef_t* line, const sector_t* front, cons
otherSide = (lineDef->L_v(i^side) == neighbor->L_v1? i : i^1);
othersec = neighbor->L_sector(otherSide);

// Exclude 'special' neighbors which we pretend to be solid.
if(LINE_SELFREF(neighbor) ||
((R_IsSkySurface(&othersec->SP_planesurface(planeId)) ||
R_IsSkySurface(&othersec->SP_planesurface(PLN_CEILING))) &&
othersec->SP_floorvisheight >= othersec->SP_ceilvisheight))
if(Rend_DoesMidTextureFillGap(neighbor, otherSide^1, false))
{
sideOpen[i] = 1;
sideOpen[i] = 0;
}
else if(Rend_DoesMidTextureFillGap(neighbor, otherSide^1, false))
else if(LINE_SELFREF(neighbor))
{
sideOpen[i] = 0;
sideOpen[i] = 1;
}
else
{ // Its a normal neighbor.
Expand Down

0 comments on commit 2e7be58

Please sign in to comment.