mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-27 04:00:42 +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)
|
else if (sprite[gImpactSpritesList[i]].sectnum < 0 || (sprite[gImpactSpritesList[i]].flags & kHitagFree) != 0)
|
||||||
continue;
|
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))
|
if (/*pXImpact->state == pXImpact->restState ||*/ !TestBitString(v24c, pImpact->sectnum) || !CheckProximity(pImpact, x, y, z, nSector, radius))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue