From 9155fd6c14eb8ab09bbfc7bc3892eb2736c28099 Mon Sep 17 00:00:00 2001 From: RedEnchilada Date: Mon, 24 Aug 2015 22:09:19 -0500 Subject: [PATCH] Fix unexpected behavior with colormaps in sloped sectors To be specific: when a sector had a sloped ceiling and a colormap was placed above it, the colormap wouldn't fill anything above where the ceiling height is at the sector's midpoint. This is fixed. --- src/r_bsp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/r_bsp.c b/src/r_bsp.c index 5474a4345..7d584a976 100644 --- a/src/r_bsp.c +++ b/src/r_bsp.c @@ -1218,6 +1218,7 @@ void R_Prep3DFloors(sector_t *sector) heighttest = sector->c_slope ? P_GetZAt(sector->c_slope, sector->soundorg.x, sector->soundorg.y) : sector->ceilingheight; sector->lightlist[0].height = heighttest + 1; + sector->lightlist[0].slope = sector->c_slope; #else sector->lightlist[0].height = sector->ceilingheight + 1; #endif