Splats: fix fullbright / RF_NOCOLORMAPS still using sector colormap (underwater)

Fullbright is supposed to ignore colormaps but splats were
misbehaving.
This commit is contained in:
James R 2024-03-13 02:11:09 -07:00
parent 284af02d11
commit 7cbf711568

View file

@ -422,7 +422,7 @@ static void R_RasterizeFloorSplat(floorsplat_t *pSplat, vector2_t *verts, visspr
if (ds.translation == NULL)
ds.translation = colormaps;
if (vis->extra_colormap)
if (vis->extra_colormap && !(vis->cut & SC_FULLBRIGHT) && !(vis->renderflags & RF_NOCOLORMAPS))
{
if (!ds.colormap)
ds.colormap = vis->extra_colormap->colormap;