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.
This commit is contained in:
RedEnchilada 2015-08-24 22:09:19 -05:00
parent 2fb03a7cff
commit 9155fd6c14

View file

@ -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