mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
- Blood: refine picnum 0 filter to apply to face sprites only.
This commit is contained in:
parent
6aecc18c35
commit
6e43f1a15a
1 changed files with 9 additions and 1 deletions
|
@ -537,7 +537,15 @@ void viewProcessSprites(spritetype* tsprite, int& spritesortcnt, int32_t cX, int
|
|||
pTXSprite = &owneractor->x();
|
||||
}
|
||||
int nTile = pTSprite->picnum;
|
||||
if (nTile <= 0 || nTile >= kMaxTiles)
|
||||
if (nTile < 0 || nTile >= kMaxTiles)
|
||||
{
|
||||
pTSprite->xrepeat = 0;
|
||||
continue;
|
||||
}
|
||||
// skip picnum 0 on face sprites. picnum 0 is a simple wall texture in Blood,
|
||||
// but there are maps that use 0 on some operator sprites that may show up in potals as a result.
|
||||
// Since the wall texture is perfectly fine for wall and floor sprites, these will be allowed to pass.
|
||||
if (nTile == 0 && (pTSprite->cstat & CSTAT_SPRITE_ALIGNMENT_MASK) == CSTAT_SPRITE_ALIGNMENT_FACING)
|
||||
{
|
||||
pTSprite->xrepeat = 0;
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue