- deal with most of CSTAT_SECTOR_SKY and CSTAT_SECTOR_SLOPE

This commit is contained in:
Christoph Oelckers 2021-12-18 13:14:56 +01:00
parent 98f0886b3d
commit d0a06ae961
24 changed files with 69 additions and 69 deletions

View file

@ -366,7 +366,7 @@ static void ReadSpriteV5(FileReader& fr, spritetype& spr, int& secno)
spr.extra = fr.ReadInt16();
auto sec = spr.sector();
if ((sec->ceilingstat & 1) > 0)
if ((sec->ceilingstat & CSTAT_SECTOR_SKY) > 0)
spr.pal = sec->ceilingpal;
else
spr.pal = sec->floorpal;