Skip to content

Commit

Permalink
Adjust sky fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dashodanger committed Nov 2, 2024
1 parent 931fa28 commit 09180c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source_files/edge/r_render.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2232,13 +2232,13 @@ static void RendererWalkSeg(DrawSubsector *dsub, Seg *seg)

if (EDGE_IMAGE_IS_SKY(fsector->ceiling))
{
if (seg->sidedef->top.image == nullptr && fsector->interpolated_ceiling_height < fsector->sky_height &&
if (fsector->interpolated_ceiling_height < fsector->sky_height &&
(!bsector || !EDGE_IMAGE_IS_SKY(bsector->ceiling) ||
bsector->interpolated_floor_height >= fsector->interpolated_ceiling_height))
{
RenderSkyWall(seg, fsector->interpolated_ceiling_height, fsector->sky_height);
}
else if (seg->sidedef->bottom.image == nullptr && bsector && EDGE_IMAGE_IS_SKY(bsector->ceiling) && fsector->height_sector == nullptr &&
else if (bsector && EDGE_IMAGE_IS_SKY(bsector->ceiling) && fsector->height_sector == nullptr &&
bsector->height_sector == nullptr)
{
float max_f = HMM_MAX(fsector->interpolated_floor_height, bsector->interpolated_floor_height);
Expand Down

0 comments on commit 09180c8

Please sign in to comment.