Off, thanks Todd for implicit if else conditions

This commit is contained in:
nukeykt 2019-06-22 15:14:26 +09:00 committed by Christoph Oelckers
parent 7a877d8782
commit 24c2b2473d

View file

@ -7485,7 +7485,9 @@ check_enemy_sprite:
}
}
if ((trueFloorDist < PHEIGHT + ZOFFSET3) && (checkWalkSound == 1 || checkWalkSound == 3))
if ((trueFloorDist < PHEIGHT + ZOFFSET3))
{
if (checkWalkSound == 1 || checkWalkSound == 3)
{
if (pPlayer->spritebridge == 0 && pPlayer->walking_snd_toggle == 0 && pPlayer->on_ground)
{
@ -7519,6 +7521,7 @@ check_enemy_sprite:
}
else if (pPlayer->walking_snd_toggle > 0)
pPlayer->walking_snd_toggle--;
}
if (pPlayer->jetpack_on == 0 && pPlayer->inv_amount[GET_STEROIDS] > 0 && pPlayer->inv_amount[GET_STEROIDS] < 400)
velocityModifier <<= 1;