- Exhumed: Remove goto out of updatePlayerAction().

* Doesn't really make sense and PowerslaveGDX doesn't do any jumping like this here.
This commit is contained in:
Mitchell Richters 2023-03-24 19:50:11 +11:00
parent 4c8b7e6804
commit 806dca975a

View file

@ -966,7 +966,6 @@ static void updatePlayerAction(Player* const pPlayer)
pPlayerActor->viewzoffset += ((-32.5 - pPlayerActor->viewzoffset) * 0.5); pPlayerActor->viewzoffset += ((-32.5 - pPlayerActor->viewzoffset) * 0.5);
} }
loc_1BD2E:
nextAction = 7 - (pPlayer->totalvel < 1); nextAction = 7 - (pPlayer->totalvel < 1);
} }
} }
@ -984,7 +983,7 @@ static void updatePlayerAction(Player* const pPlayer)
{ {
// CHECKME - confirm branching in this area is OK // CHECKME - confirm branching in this area is OK
// CHECKME - are we finished with 'nSector' variable at this point? if so, maybe set it to pPlayerActor->sector() so we can make this code a bit neater. Don't assume pPlayerActor->sector() == nSector here!! // CHECKME - are we finished with 'nSector' variable at this point? if so, maybe set it to pPlayerActor->sector() so we can make this code a bit neater. Don't assume pPlayerActor->sector() == nSector here!!
goto loc_1BD2E; nextAction = 7 - (pPlayer->totalvel < 1);
} }
else else
{ {