Eliminate unnecessary goto

git-svn-id: https://svn.eduke32.com/eduke32@8731 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2020-03-12 01:05:40 +00:00 committed by Christoph Oelckers
parent 2e17467a8f
commit 21ec33ac51

View file

@ -671,9 +671,8 @@ GAMEEXEC_STATIC void VM_Move(void)
return;
}
if (deadflag)
goto dead;
if (!deadflag)
{
if (movflags & face_player)
VM_FacePlayer(2);
@ -694,8 +693,8 @@ GAMEEXEC_STATIC void VM_Move(void)
vec2_t const vect = { vm.pPlayer->pos.x + (vm.pPlayer->vel.x / 768), vm.pPlayer->pos.y + (vm.pPlayer->vel.y / 768) };
VM_AddAngle(2, getangle(vect.x - vm.pSprite->x, vect.y - vm.pSprite->y));
}
}
dead:
#if !defined LUNATIC
if (EDUKE32_PREDICT_FALSE((unsigned)AC_MOVE_ID(vm.pData) >= (unsigned)g_scriptSize-1))
{