From b3e4ba13ba4e0a96212d4c5f57a0e2b16765cee5 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Sat, 15 Oct 2016 21:53:45 +0200 Subject: [PATCH] Use GetSkyCapColor to pick the sky solid color --- src/r_plane.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/r_plane.cpp b/src/r_plane.cpp index 8f2a7f630..4e18815ba 100644 --- a/src/r_plane.cpp +++ b/src/r_plane.cpp @@ -1033,9 +1033,8 @@ static void R_DrawSkyColumn(int start_x, int y1, int y2, int columns) dc_dest = (ylookup[y1] + start_x) * 4 + dc_destorg; dc_count = y2 - y1; - // To do: figure out how GZDoom calculates the solid top and bottom colors - uint32_t solid_top = 0xff7f7f7f; - uint32_t solid_bottom = 0xff3f3f3f; + uint32_t solid_top = frontskytex->GetSkyCapColor(false); + uint32_t solid_bottom = frontskytex->GetSkyCapColor(true); if (columns == 4) if (!backskytex)