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/
This commit is contained in:
Simon Howard 2014-02-04 01:41:54 +00:00
parent acdf59e1f0
commit 472ec7e7e5

View file

@ -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))