From ad200d8a56c36bf650a20192f2e9594ef2efde18 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Thu, 4 Nov 2010 02:19:34 +0000 Subject: [PATCH] - 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) --- src/p_user.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/p_user.cpp b/src/p_user.cpp index f80ddb9ae..836b665d6 100644 --- a/src/p_user.cpp +++ b/src/p_user.cpp @@ -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)) {