From fb7efbd4b77491fd17085c64050dab250da4b1af Mon Sep 17 00:00:00 2001 From: helixhorned Date: Sun, 11 Oct 2009 16:18:06 +0000 Subject: [PATCH] small fix git-svn-id: https://svn.eduke32.com/eduke32@1529 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/astub.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/polymer/eduke32/source/astub.c b/polymer/eduke32/source/astub.c index 7f4ac62d3..6f3a4d048 100644 --- a/polymer/eduke32/source/astub.c +++ b/polymer/eduke32/source/astub.c @@ -10532,7 +10532,11 @@ void ExtAnalyzeSprites(void) if (shadepreview && !(tspr->cstat & 16)) { if (sector[tspr->sectnum].ceilingstat&1) + { l = sector[tspr->sectnum].ceilingshade; + if (sector[tspr->sectnum].ceilingpal != 0 && sector[tspr->sectnum].ceilingpal < num_tables) + tspr->pal=sector[tspr->sectnum].ceilingpal; + } else { l = sector[tspr->sectnum].floorshade;