mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-20 18:42:26 +00:00
- Exhumed: Tidy up a long ternary in updatePlayerAction()
.
This commit is contained in:
parent
258ab0db89
commit
f9b9345e01
1 changed files with 9 additions and 1 deletions
|
@ -1273,9 +1273,17 @@ static void updatePlayerAction(Player* const pPlayer, const bool bUnderwater)
|
|||
{
|
||||
nextAction = 7 - (pPlayer->totalvel < 1);
|
||||
}
|
||||
else if (pPlayer->totalvel <= 1)
|
||||
{
|
||||
nextAction = bUnderwater;
|
||||
}
|
||||
else if (pPlayer->totalvel <= 30)
|
||||
{
|
||||
nextAction = 2;
|
||||
}
|
||||
else
|
||||
{
|
||||
nextAction = (pPlayer->totalvel <= 1) ? bUnderwater : (pPlayer->totalvel <= 30) ? 2 : 1;
|
||||
nextAction = 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue