Fix "findnearactor" family of CON functions

git-svn-id: https://svn.eduke32.com/eduke32@7423 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-03-19 17:09:24 +00:00 committed by Christoph Oelckers
parent 35efbccfa3
commit bafc3b45a2

View file

@ -5463,7 +5463,7 @@ badindex:
break;
} while (findStatnum--);
Gv_SetVarX(returnVar, foundSprite);
dispatch();
continue;
}
do
@ -5511,7 +5511,7 @@ badindex:
int spriteNum = headspritestat[tw == CON_FINDNEARACTORZ ? STAT_ACTOR : findStatnum]; // all sprites
if (spriteNum == -1)
dispatch();
continue;
do
{
if (sprite[spriteNum].picnum == findPicnum && spriteNum != vm.spriteNum)