mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +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
ac80cc3834
commit
1aa03c01dc
1 changed files with 2 additions and 2 deletions
|
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue