mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-31 12:30:40 +00:00
Eliminate unnecessary goto
git-svn-id: https://svn.eduke32.com/eduke32@8731 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
2e17467a8f
commit
21ec33ac51
1 changed files with 21 additions and 22 deletions
|
@ -671,9 +671,8 @@ GAMEEXEC_STATIC void VM_Move(void)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (deadflag)
|
if (!deadflag)
|
||||||
goto dead;
|
{
|
||||||
|
|
||||||
if (movflags & face_player)
|
if (movflags & face_player)
|
||||||
VM_FacePlayer(2);
|
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) };
|
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));
|
VM_AddAngle(2, getangle(vect.x - vm.pSprite->x, vect.y - vm.pSprite->y));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
dead:
|
|
||||||
#if !defined LUNATIC
|
#if !defined LUNATIC
|
||||||
if (EDUKE32_PREDICT_FALSE((unsigned)AC_MOVE_ID(vm.pData) >= (unsigned)g_scriptSize-1))
|
if (EDUKE32_PREDICT_FALSE((unsigned)AC_MOVE_ID(vm.pData) >= (unsigned)g_scriptSize-1))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue