From 4bcbd5c0117b52d0e4c767d21c3299df3621536a Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 27 Feb 2017 18:35:29 +0100 Subject: [PATCH] - clear WF_WEAPONBOBBING in P_FireWeapon, because otherwise the first frame of the fire animation will be drawn in the current bobbing position and not centered. --- src/p_pspr.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/p_pspr.cpp b/src/p_pspr.cpp index 8b8e93f6a..47675699a 100644 --- a/src/p_pspr.cpp +++ b/src/p_pspr.cpp @@ -536,6 +536,7 @@ void P_FireWeapon (player_t *player, FState *state) return; } + player->WeaponState &= ~WF_WEAPONBOBBING; player->mo->PlayAttacking (); weapon->bAltFire = false; if (state == nullptr) @@ -572,6 +573,7 @@ void P_FireWeaponAlt (player_t *player, FState *state) return; } + player->WeaponState &= ~WF_WEAPONBOBBING; player->mo->PlayAttacking (); weapon->bAltFire = true;