From 120a2b4ca79d3b003db0f7930ba95c2f7e37bfc9 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Wed, 18 Dec 2019 09:30:53 +0000 Subject: [PATCH] Remove arbitrary check on numshades == 32 Backported from PCExhumed. git-svn-id: https://svn.eduke32.com/eduke32@8432 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/palette.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/source/build/src/palette.cpp b/source/build/src/palette.cpp index cf4c07e0e..857e80ff1 100644 --- a/source/build/src/palette.cpp +++ b/source/build/src/palette.cpp @@ -600,9 +600,6 @@ void handle_blend(uint8_t enable, uint8_t blend, uint8_t def) int32_t paletteSetLookupTable(int32_t palnum, const uint8_t *shtab) { - if (numshades != 32) - return -1; - if (shtab != NULL) { maybe_alloc_palookup(palnum);