Mapster32: fix display of pal 4 sprites in 2d mode.

git-svn-id: https://svn.eduke32.com/eduke32@5306 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2015-07-20 20:25:32 +00:00
parent dfe614db5c
commit 9cf3e19d61

View file

@ -17261,7 +17261,7 @@ int32_t getspritecol(int32_t spr)
int picnum = sprite[spr].picnum;
int pal = sprite[spr].pal;
if (palookup[pal] == NULL) pal = 0;
if (palookup[pal] == NULL || tilecols[picnum] && palookup[pal][tilecols[picnum]] == 0) pal = 0;
if (tilecols[picnum]) return palookup[pal][tilecols[picnum]];