- 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:
Randy Heit 2010-11-04 02:19:34 +00:00
parent d45262f96b
commit ad200d8a56

View file

@ -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))
{