mirror of
https://github.com/freedoom/freedoom.git
synced 2025-09-02 07:25:45 -04:00
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:
parent
acdf59e1f0
commit
472ec7e7e5
1 changed files with 6 additions and 0 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue