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;