From 6604f47931a521a05526cf520cad35438a4999af Mon Sep 17 00:00:00 2001
From: katsy <205-katsy@users.noreply.git.do.srb2.org>
Date: Sun, 25 Feb 2024 13:39:17 +0000
Subject: [PATCH] Use PF_NOJUMPDAMAGE for whirlwind jump instead of removing
 jump flags (resolves #771)

---
 src/p_user.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/p_user.c b/src/p_user.c
index 25a60cf34b..f9b88da2ed 100644
--- a/src/p_user.c
+++ b/src/p_user.c
@@ -4977,7 +4977,7 @@ void P_DoJumpShield(player_t *player)
 	}
 	else
 	{
-		player->pflags &= ~(PF_JUMPED|PF_NOJUMPDAMAGE);
+		player->pflags |= PF_NOJUMPDAMAGE;
 		P_SetMobjState(player->mo, S_PLAY_FALL);
 		S_StartSound(player->mo, sfx_wdjump);
 	}
-- 
GitLab