mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 08:52:00 +00:00
- Blood: make sure that invalid sprites don't get rendered at all.
Seems the game may have depended on them being clipped by the floor or ceiling.
This commit is contained in:
parent
a899055f50
commit
498abf25f3
1 changed files with 2 additions and 1 deletions
|
@ -537,8 +537,9 @@ 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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue