id-Software/DOOM-3-BFG — pull request #2 by JamesDunne (2012-11-28 22:36:50+00:00)
Title: DOOM Classic Mode with 24bpp color

This work precalculates a 24bpp colormap (in `I_SetPalette`) in order to use 24bpp RGB values for lighting instead of the palette mapping table from the COLORMAP lump.

Full disclosure:
The screen wipe effect is currently disabled; more work is needed to convert that over to work with 24bpp screens.
The fuzz effect for spectres has been modified because the `colormap[6*256+dest[p]]` lookup is no longer feasible unless we load the COLORMAP lump specifically for that effect or find a way to calculate its effect on-the-fly.
`R_InitColormaps` unnecessarily allocates a chunk of memory to do an identity lookup just to satisfy the rest of the code that is dependent on the `lighttable_t*` tables; this could be entirely removed.
NUMCOLORMAPS is increased from 32 to 64; produces smoother lighting.