Blood: fix view sprites overflow in ROR code

This commit is contained in:
nukeykt 2021-07-26 14:38:51 +09:00 committed by Mitchell Richters
parent 39547e2df5
commit 557cd7e734

View file

@ -31,6 +31,8 @@ void collectTSpritesForPortal(int x, int y, int i, int interpolation)
int dx = mirror[j].dx;
int dy = mirror[j].dy;
int dz = mirror[j].dz;
if (pm_spritesortcnt < MAXSPRITESONSCREEN)
{
tspritetype* pTSprite = &pm_tsprite[pm_spritesortcnt++];
*pTSprite = {};
pTSprite->type = pSprite->type;
@ -95,6 +97,7 @@ void collectTSpritesForPortal(int x, int y, int i, int interpolation)
pm_spritesortcnt++;
}
}
}
}