mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-31 04:20:42 +00:00
Player duct walking sound fix
git-svn-id: https://svn.eduke32.com/eduke32@7726 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
86dcab958d
commit
876627136a
1 changed files with 28 additions and 25 deletions
|
@ -5275,7 +5275,9 @@ void P_ProcessInput(int playerNum)
|
|||
{
|
||||
int const checkWalkSound = sintable[pPlayer->bobcounter & 2047] >> 12;
|
||||
|
||||
if ((trueFloorDist < PHEIGHT + ZOFFSET3) && (checkWalkSound == 1 || checkWalkSound == 3))
|
||||
if (trueFloorDist < PHEIGHT + ZOFFSET3)
|
||||
{
|
||||
if (checkWalkSound == 1 || checkWalkSound == 3)
|
||||
{
|
||||
if (pPlayer->walking_snd_toggle == 0 && pPlayer->on_ground)
|
||||
{
|
||||
|
@ -5311,6 +5313,7 @@ void P_ProcessInput(int playerNum)
|
|||
}
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue