mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 15:22:16 +00:00
Stop prediction from playing and stopping sounds
Player prediction would play *jump and stop falling sounds, creating odd cases of sound repetition before the gametic caught up.
This commit is contained in:
parent
7045f195f3
commit
a993b0288a
1 changed files with 3 additions and 2 deletions
|
@ -2473,9 +2473,10 @@ void P_PlayerThink (player_t *player)
|
|||
if ( player->cheats & CF_HIGHJUMP ) jumpvelz *= 2;
|
||||
|
||||
player->mo->velz += jumpvelz;
|
||||
S_Sound (player->mo, CHAN_BODY, "*jump", 1, ATTN_NORM);
|
||||
player->mo->flags2 &= ~MF2_ONMOBJ;
|
||||
player->jumpTics = -1;
|
||||
if (!(player->cheats & CF_PREDICTING))
|
||||
S_Sound(player->mo, CHAN_BODY, "*jump", 1, ATTN_NORM);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2502,7 +2503,7 @@ void P_PlayerThink (player_t *player)
|
|||
{
|
||||
player->mo->flags2 |= MF2_FLY;
|
||||
player->mo->flags |= MF_NOGRAVITY;
|
||||
if (player->mo->velz <= -39*FRACUNIT)
|
||||
if ((player->mo->velz <= -39 * FRACUNIT) && !(player->cheats & CF_PREDICTING))
|
||||
{ // Stop falling scream
|
||||
S_StopSound (player->mo, CHAN_VOICE);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue