From 472ec7e7e5f988f75934fe4719268ec11bdc83e7 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Tue, 4 Feb 2014 01:41:54 +0000 Subject: [PATCH] colormap: Fix generated COLORMAP size. In this old Doomworld thread, shadow1013 pointed out that some tools, such as SLADE, do not recognize COLORMAP lumps unless they are exactly the right size: http://www.doomworld.com/vb/freedoom/58317-colormap-generation-bug/ --- lumps/cph/misc-lumps/colormap.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lumps/cph/misc-lumps/colormap.py b/lumps/cph/misc-lumps/colormap.py index 2633e24d..d650f3fd 100755 --- a/lumps/cph/misc-lumps/colormap.py +++ b/lumps/cph/misc-lumps/colormap.py @@ -235,3 +235,9 @@ for i in range(32): inverse_colors = invert_colors(palette) output_colormap(generate_colormap(inverse_colors, palette)) +# Last colormap is all black, and is actually unused in Vanilla Doom +# (it was mistakenly included by the dcolors.c utility). It's +# strictly unneeded, though some utilities (SLADE) do not detect a +# lump as a COLORMAP unless it is the right length. +output_colormap(generate_colormap(dark, palette)) +