Merge commit '45922f80d1e35aadc9da6e20fa32fa78c1044dfd' into flats-png

This commit is contained in:
Alam Ed Arias 2019-07-24 18:17:01 -04:00
commit 0eb6b24415

View file

@ -1160,6 +1160,15 @@ void R_ReInitColormaps(UINT16 num)
lump = W_GetNumForName(colormap);
if (lump == LUMPERROR)
lump = W_GetNumForName("COLORMAP");
else
{
if (W_LumpLength(lump) > W_LumpLength(W_GetNumForName("COLORMAP")))
{
CONS_Alert(CONS_WARNING, "%s lump size is too big, using COLORMAP.\n", colormap);
lump = W_GetNumForName("COLORMAP");
}
}
W_ReadLump(lump, colormaps);
// Init Boom colormaps.