Skip to content

Commit

Permalink
- Exhumed: Clean out some stale goto calls that were commented out.
Browse files Browse the repository at this point in the history
* Only two remaining gotos to handle now.
  • Loading branch information
mjr4077au committed Mar 24, 2023
1 parent 611d7ba commit 0842ea3
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions source/games/exhumed/src/player.cpp
Expand Up @@ -1408,8 +1408,6 @@ void AIPlayer::Tick(RunListEvent* ev)
nActionB = 3;
}
}

// goto loc_1BE70:
}
else if (pPlayer->input.actions & SB_CROUCH)
{
Expand All @@ -1432,8 +1430,6 @@ void AIPlayer::Tick(RunListEvent* ev)
nActionB = 7;
}
}

// goto loc_1BE70:
}
else
{
Expand Down Expand Up @@ -1489,9 +1485,7 @@ void AIPlayer::Tick(RunListEvent* ev)

// loc_1BE70:
// Handle player pressing number keys to change weapon
uint8_t var_90 = pPlayer->input.getNewWeapon();

if (var_90)
if (uint8_t var_90 = pPlayer->input.getNewWeapon())
{
var_90--;

Expand Down

0 comments on commit 0842ea3

Please sign in to comment.