From 9cf3e19d619fb54c6dcc163fcb46addd13bfe2cd Mon Sep 17 00:00:00 2001 From: terminx Date: Mon, 20 Jul 2015 20:25:32 +0000 Subject: [PATCH] Mapster32: fix display of pal 4 sprites in 2d mode. git-svn-id: https://svn.eduke32.com/eduke32@5306 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/engine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymer/eduke32/build/src/engine.c b/polymer/eduke32/build/src/engine.c index c8b690961..1c7b6b94b 100644 --- a/polymer/eduke32/build/src/engine.c +++ b/polymer/eduke32/build/src/engine.c @@ -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]];