From 806dca975a980a1c059ca28ac1469dfd10fe9b46 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Fri, 24 Mar 2023 19:50:11 +1100 Subject: [PATCH] - Exhumed: Remove goto out of `updatePlayerAction()`. * Doesn't really make sense and PowerslaveGDX doesn't do any jumping like this here. --- source/games/exhumed/src/player.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/games/exhumed/src/player.cpp b/source/games/exhumed/src/player.cpp index 9f1305322c..ae93f2f164 100644 --- a/source/games/exhumed/src/player.cpp +++ b/source/games/exhumed/src/player.cpp @@ -966,7 +966,6 @@ static void updatePlayerAction(Player* const pPlayer) pPlayerActor->viewzoffset += ((-32.5 - pPlayerActor->viewzoffset) * 0.5); } - loc_1BD2E: nextAction = 7 - (pPlayer->totalvel < 1); } } @@ -984,7 +983,7 @@ static void updatePlayerAction(Player* const pPlayer) { // 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!! - goto loc_1BD2E; + nextAction = 7 - (pPlayer->totalvel < 1); } else {