Skip to content

Commit

Permalink
Fixed: Non-opaque middle textures on twosided linedefs that fill the …
Browse files Browse the repository at this point in the history
…gap between floor and ceiling are drawn slightly darker than they should be (with Fakeradio enabled).
  • Loading branch information
danij-deng committed Apr 4, 2010
1 parent e2fe51c commit 5e59776
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions doomsday/engine/portable/src/rend_main.c
Expand Up @@ -1866,7 +1866,8 @@ static boolean doRenderSeg(seg_t* seg,
const float* color, const float* color2,
biassurface_t* bsuf, uint elmIdx /*tmp*/,
const material_snapshot_t* msA, float inter,
const material_snapshot_t* msB)
const material_snapshot_t* msB,
boolean isTwosidedMiddle)
{
rendworldpoly_params_t params;
sidedef_t* side = (seg->lineDef? SEG_SIDEDEF(seg) : NULL);
Expand Down Expand Up @@ -1947,7 +1948,7 @@ static boolean doRenderSeg(seg_t* seg,
radioParams.segOffset = &seg->offset;
radioParams.segLength = &seg->length;
radioParams.frontSec = seg->SG_frontsector;
radioParams.backSec = seg->SG_backsector;
radioParams.backSec = (!isTwosidedMiddle? seg->SG_backsector : NULL);

/**
* \kludge Revert the vertex coords as they may have been changed
Expand Down Expand Up @@ -2384,7 +2385,8 @@ static boolean rendSegSection(subsector_t* ssec, seg_t* seg,
texTL, texBR, texOffset, texScale, blendMode,
color, color2,
seg->bsuf[section], (uint) section,
&msA, inter, blended? &msB : NULL);
&msA, inter, blended? &msB : NULL,
(section == SEG_MIDDLE && isTwoSided));
}
}

Expand Down

0 comments on commit 5e59776

Please sign in to comment.