From bb9b1b3b1f0f133feef8395cefa3a9cc3939a6e1 Mon Sep 17 00:00:00 2001
From: Sryder <sryder13@gmail.com>
Date: Sun, 23 Jun 2019 13:49:39 +0100
Subject: [PATCH] Change COLORMAP lump size check to be exact A lower size
 could technically be valid, but could easily run into strange issues.

---
 src/r_data.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/r_data.c b/src/r_data.c
index c50cbf2095..be7a5dc983 100644
--- a/src/r_data.c
+++ b/src/r_data.c
@@ -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");
 		}
 	}
-- 
GitLab