mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 15:21:51 +00:00
Merge branch 'master' of https://github.com/Edward850/zdoom
This commit is contained in:
commit
9a927c2030
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;
|
if ( player->cheats & CF_HIGHJUMP ) jumpvelz *= 2;
|
||||||
|
|
||||||
player->mo->velz += jumpvelz;
|
player->mo->velz += jumpvelz;
|
||||||
S_Sound (player->mo, CHAN_BODY, "*jump", 1, ATTN_NORM);
|
|
||||||
player->mo->flags2 &= ~MF2_ONMOBJ;
|
player->mo->flags2 &= ~MF2_ONMOBJ;
|
||||||
player->jumpTics = -1;
|
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->flags2 |= MF2_FLY;
|
||||||
player->mo->flags |= MF_NOGRAVITY;
|
player->mo->flags |= MF_NOGRAVITY;
|
||||||
if (player->mo->velz <= -39*FRACUNIT)
|
if ((player->mo->velz <= -39 * FRACUNIT) && !(player->cheats & CF_PREDICTING))
|
||||||
{ // Stop falling scream
|
{ // Stop falling scream
|
||||||
S_StopSound (player->mo, CHAN_VOICE);
|
S_StopSound (player->mo, CHAN_VOICE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue