mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-31 04:20:42 +00:00
- Exhumed: eliminate all remaining MAXSECTORS references
This commit is contained in:
parent
794c4483ca
commit
5a6d4f88d5
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue