From dc57a34213cb8eb6d63778e1092e93943fb99d92 Mon Sep 17 00:00:00 2001 From: toasterbabe Date: Fri, 30 Sep 2016 14:06:53 +0100 Subject: [PATCH] Revert "Fixed another bug where you were able to use the whirlwind shield ability after using the force shield's dodge dash." This reverts commit cbe703478cc484357f84d7a6dfff2384cd6ec559. --- src/p_user.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/p_user.c b/src/p_user.c index 2deeaf029..47e59c211 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -867,8 +867,6 @@ void P_DoPlayerPain(player_t *player, mobj_t *source, mobj_t *inflictor) // Useful when you want to kill everything the player is doing. void P_ResetPlayer(player_t *player) { - pflags_t removelist = (PF_SPINNING|PF_STARTDASH|PF_JUMPED|PF_GLIDING|PF_THOKKED|PF_CANCARRY|PF_SHIELDABILITY); - if (player->mo && player->powers[pw_shield] & SH_FORCE // Dash. && player->pflags & PF_SHIELDABILITY) @@ -876,10 +874,9 @@ void P_ResetPlayer(player_t *player) P_SetPlayerMobjState(player->mo, S_PLAY_FALL); player->mo->flags &= ~MF_NOGRAVITY; player->pflags &= ~PF_FULLSTASIS; - removelist &= ~PF_THOKKED; } - player->pflags &= ~removelist; + player->pflags &= ~(PF_SPINNING|PF_STARTDASH|PF_JUMPED|PF_GLIDING|PF_THOKKED|PF_CANCARRY|PF_SHIELDABILITY); player->powers[pw_carry] = CR_NONE; player->jumping = 0; player->secondjump = 0;