small fix

git-svn-id: https://svn.eduke32.com/eduke32@1529 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2009-10-11 16:18:06 +00:00
parent 4bde7fddac
commit fb7efbd4b7

View file

@ -10532,7 +10532,11 @@ void ExtAnalyzeSprites(void)
if (shadepreview && !(tspr->cstat & 16)) if (shadepreview && !(tspr->cstat & 16))
{ {
if (sector[tspr->sectnum].ceilingstat&1) if (sector[tspr->sectnum].ceilingstat&1)
{
l = sector[tspr->sectnum].ceilingshade; l = sector[tspr->sectnum].ceilingshade;
if (sector[tspr->sectnum].ceilingpal != 0 && sector[tspr->sectnum].ceilingpal < num_tables)
tspr->pal=sector[tspr->sectnum].ceilingpal;
}
else else
{ {
l = sector[tspr->sectnum].floorshade; l = sector[tspr->sectnum].floorshade;