Change COLORMAP lump size check to be exact

A lower size could technically be valid, but could easily run into strange issues.
This commit is contained in:
Sryder 2019-06-23 13:49:39 +01:00
parent bc254d9cf7
commit bb9b1b3b1f

View file

@ -1064,9 +1064,9 @@ void R_ReInitColormaps(UINT16 num)
lump = W_GetNumForName("COLORMAP"); lump = W_GetNumForName("COLORMAP");
else else
{ {
if (W_LumpLength(lump) > W_LumpLength(W_GetNumForName("COLORMAP"))) if (W_LumpLength(lump) != W_LumpLength(W_GetNumForName("COLORMAP")))
{ {
CONS_Alert(CONS_WARNING, "%s lump size is too big, using COLORMAP.\n", colormap); CONS_Alert(CONS_WARNING, "%s lump size does not match COLORMAP, using COLORMAP instead.\n", colormap);
lump = W_GetNumForName("COLORMAP"); lump = W_GetNumForName("COLORMAP");
} }
} }