- 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:
Christoph Oelckers 2021-12-13 11:45:28 +01:00
parent a899055f50
commit 498abf25f3

View file

@ -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;
}