Skip to content

Commit

Permalink
Changed: Always force all non-middle seg sections opaque.
Browse files Browse the repository at this point in the history
  • Loading branch information
danij committed May 16, 2009
1 parent dee4e43 commit 072ac5a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions doomsday/engine/portable/src/rend_main.c
Expand Up @@ -1846,7 +1846,8 @@ static boolean doRenderSeg(seg_t* seg,
params.type = (skyMask? RPT_SKY_MASK : RPT_NORMAL);
params.isWall = true;
params.segLength = &seg->length;
params.alpha = alpha;
params.forceOpaque = (alpha < 0? true : false);
params.alpha = (alpha < 0? 1 : alpha);
params.mapObject = seg;
params.elmIdx = elmIdx;
params.bsuf = bsuf;
Expand Down Expand Up @@ -2327,7 +2328,7 @@ static boolean rendSegSection(subsector_t* ssec, seg_t* seg,

solidSeg = doRenderSeg(seg,
from, to, bottom, top,
surface->normal, (forceOpaque? 1 : alpha),
surface->normal, (forceOpaque? -1 : alpha),
&frontsec->lightLevel,
R_WallAngleLightLevelDelta(seg->lineDef, seg->side),
R_GetSectorLightColor(frontsec),
Expand Down

0 comments on commit 072ac5a

Please sign in to comment.