Deep water support

This commit is contained in:
Magnus Norddahl 2016-11-15 15:15:26 +01:00
commit ee15856786
2 changed files with 43 additions and 4 deletions

View file

@ -147,7 +147,7 @@ void RenderPolyScene::RenderLine(subsector_t *sub, seg_t *line, sector_t *fronts
// Cull wall if not visible
int sx1, sx2;
bool hasSegmentRange = Cull.GetSegmentRangeForLine(line->v1->fX(), line->v1->fY(), line->v2->fX(), line->v2->fY(), sx1, sx2);
if (hasSegmentRange && Cull.IsSegmentCulled(sx1, sx2))
if (!hasSegmentRange || Cull.IsSegmentCulled(sx1, sx2))
return;
// Tell automap we saw this