mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-23 12:04:38 -04:00

When reading a TRANMAP lump in from a file, only the first 256 bytes of the current palette are compared to the palette for which the TRANMAP was created. An entire palette, though, consists of 256 RGB tripel and is thus 3*256 bytes long. Thus, only the first third of both palettes are compared and if these happen to match, translucency will look glitched. Fix this by comparing and writing out the entire palette to the cache file.
Languages
C
98.9%
CMake
0.9%
Python
0.2%