- Exhumed: eliminate all remaining MAXSECTORS references

This commit is contained in:
Christoph Oelckers 2021-11-11 01:10:37 +01:00
parent 794c4483ca
commit 5a6d4f88d5
2 changed files with 2 additions and 2 deletions

View file

@ -920,7 +920,7 @@ void AIQueenHead::Tick(RunListEvent* ev)
MoveQX[nQHead] = pSprite->x;
MoveQY[nQHead] = pSprite->y;
MoveQZ[nQHead] = pSprite->z;
assert(pSprite->sectnum >= 0 && pSprite->sectnum < kMaxSectors);
assert(validSectorIndex(pSprite->sectnum));
MoveQS[nQHead] = pSprite->sectnum;
MoveQA[nQHead] = pSprite->ang;

View file

@ -121,7 +121,7 @@ void MoveRaToEnemy(short nPlayer)
if (pTarget)
{
auto pTargSprite = &pTarget->s();
if (!(pTargSprite->cstat & 0x101) || pTargSprite->sectnum == MAXSECTORS)
if (!(pTargSprite->cstat & 0x101) || pTargSprite->statnum == MAXSTATUS)
{
Ra[nPlayer].pTarget = nullptr;
if (nAction == 0 || nAction == 3) {