mirror of
https://github.com/ZDoom/Raze.git
synced 2025-03-25 02:01:46 +00:00
- consider slope sprites unavailable in map formats 5 and 6.
Exhumed has several sprites flagged with this combo - they all need to be treated as face sprites.
This commit is contained in:
parent
bb95f26c5e
commit
03cad0fe3b
1 changed files with 4 additions and 0 deletions
|
@ -341,6 +341,8 @@ static void ReadSpriteV6(FileReader& fr, spritetype& spr, int& secno)
|
|||
spr.extra = fr.ReadInt16();
|
||||
spr.blend = 0;
|
||||
spr.detail = 0;
|
||||
if ((spr.cstat & CSTAT_SPRITE_ALIGNMENT_MASK) == CSTAT_SPRITE_ALIGNMENT_SLOPE)
|
||||
spr.cstat &= ~CSTAT_SPRITE_ALIGNMENT_MASK;
|
||||
}
|
||||
|
||||
static void ReadSpriteV5(FileReader& fr, spritetype& spr, int& secno)
|
||||
|
@ -363,6 +365,8 @@ static void ReadSpriteV5(FileReader& fr, spritetype& spr, int& secno)
|
|||
spr.lotag = fr.ReadInt16();
|
||||
spr.hitag = fr.ReadInt16();
|
||||
spr.extra = fr.ReadInt16();
|
||||
if ((spr.cstat & CSTAT_SPRITE_ALIGNMENT_MASK) == CSTAT_SPRITE_ALIGNMENT_SLOPE)
|
||||
spr.cstat &= ~CSTAT_SPRITE_ALIGNMENT_MASK;
|
||||
|
||||
auto sec = spr.sectp;
|
||||
if ((sec->ceilingstat & CSTAT_SECTOR_SKY) > 0)
|
||||
|
|
Loading…
Reference in a new issue