From ee7a29dc62d16077986e525124600cb39a7a1beb Mon Sep 17 00:00:00 2001 From: James R Date: Fri, 11 Aug 2023 21:41:38 -0700 Subject: [PATCH] T_Pusher: do not apply upward wind if fastfalling --- src/p_spec.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/p_spec.c b/src/p_spec.c index df4206f22..e11c2694d 100644 --- a/src/p_spec.c +++ b/src/p_spec.c @@ -9329,7 +9329,15 @@ void T_Pusher(pusher_t *p) thing->momx += xspeed; thing->momy += yspeed; - thing->momz += zspeed; + + // Do not apply upwards wind if the player is + // fastfalling. This could cancel out the increased + // gravity from fastfalling! + if (!(thing->player && thing->player->fastfall && zspeed * P_MobjFlip(thing) > 0)) + { + thing->momz += zspeed; + } + if (thing->player) { thing->player->cmomx += xspeed;