mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-26 11:40:44 +00:00
Blood: fix impact sprite OOB issue
This commit is contained in:
parent
1685890bc5
commit
adb9547ba9
1 changed files with 4 additions and 1 deletions
|
@ -6096,7 +6096,10 @@ void actProcessSprites(void)
|
|||
else if (sprite[gImpactSpritesList[i]].sectnum < 0 || (sprite[gImpactSpritesList[i]].flags & kHitagFree) != 0)
|
||||
continue;
|
||||
|
||||
spritetype* pImpact = &sprite[gImpactSpritesList[i]]; XSPRITE* pXImpact = &xsprite[pImpact->extra];
|
||||
spritetype* pImpact = &sprite[gImpactSpritesList[i]];
|
||||
if (pImpact->extra <= 0)
|
||||
continue;
|
||||
XSPRITE* pXImpact = &xsprite[pImpact->extra];
|
||||
if (/*pXImpact->state == pXImpact->restState ||*/ !TestBitString(v24c, pImpact->sectnum) || !CheckProximity(pImpact, x, y, z, nSector, radius))
|
||||
continue;
|
||||
|
||||
|
|
Loading…
Reference in a new issue