mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-27 04:41:23 +00:00
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:
parent
bc254d9cf7
commit
bb9b1b3b1f
1 changed files with 2 additions and 2 deletions
|
@ -1064,9 +1064,9 @@ void R_ReInitColormaps(UINT16 num)
|
|||
lump = W_GetNumForName("COLORMAP");
|
||||
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");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue