mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +00:00
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:
parent
dfe614db5c
commit
9cf3e19d61
1 changed files with 1 additions and 1 deletions
|
@ -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]];
|
||||
|
||||
|
|
Loading…
Reference in a new issue