Use engine's MAXSECTORS value in MoveRaToEnemy

This commit is contained in:
nukeykt 2019-12-03 08:19:14 +09:00 committed by Christoph Oelckers
parent 865ca92b33
commit 426570729e

View file

@ -102,7 +102,7 @@ void MoveRaToEnemy(short nPlayer)
if (nTarget != -1)
{
if (!(sprite[nTarget].cstat & 0x101) || sprite[nTarget].sectnum == kMaxSectors)
if (!(sprite[nTarget].cstat & 0x101) || sprite[nTarget].sectnum == MAXSECTORS)
{
Ra[nPlayer].nTarget = -1;
if (!field_0 || field_0 == 3) {