Skip to content

Commit

Permalink
- Exhumed: Remove goto out of updatePlayerAction().
Browse files Browse the repository at this point in the history
* Doesn't really make sense and PowerslaveGDX doesn't do any jumping like this here.
  • Loading branch information
mjr4077au committed Mar 24, 2023
1 parent 4c8b7e6 commit 806dca9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/games/exhumed/src/player.cpp
Expand Up @@ -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);
}
}
Expand All @@ -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
{
Expand Down

0 comments on commit 806dca9

Please sign in to comment.