mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 06:53:58 +00:00
- Tweaked jumpTics again. As before, it now counts down whenever it is non-zero. If the player
is on the ground and it counts below -18, it is zeroed so that the player can jump again. This handles cases where either the player did not actually jump when they pressed +jump (because there was a ceiling in the way) or when they land on something other than the floor. SVN r2979 (trunk)
This commit is contained in:
parent
d45262f96b
commit
ad200d8a56
1 changed files with 5 additions and 1 deletions
|
@ -2156,9 +2156,13 @@ void P_PlayerThink (player_t *player)
|
|||
P_DeathThink (player);
|
||||
return;
|
||||
}
|
||||
if (player->jumpTics > 0)
|
||||
if (player->jumpTics != 0)
|
||||
{
|
||||
player->jumpTics--;
|
||||
if (onground && player->jumpTics < -18)
|
||||
{
|
||||
player->jumpTics = 0;
|
||||
}
|
||||
}
|
||||
if (player->morphTics && !(player->cheats & CF_PREDICTING))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue