From 392e7828938c6b4f54e84a759e55b339f346aeee Mon Sep 17 00:00:00 2001 From: lachablock Date: Mon, 27 Dec 2021 23:35:01 +1100 Subject: [PATCH] Don't modify drawangle when taking damage in strafe mode --- src/p_user.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/p_user.c b/src/p_user.c index da06510d3..d9d92f3b2 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -1048,7 +1048,8 @@ void P_DoPlayerPain(player_t *player, mobj_t *source, mobj_t *inflictor) fallbackspeed = FixedMul(4*FRACUNIT, player->mo->scale); } - player->drawangle = ang + ANGLE_180; + if (player->pflags & PF_DIRECTIONCHAR) + player->drawangle = ang + ANGLE_180; P_InstaThrust(player->mo, ang, fallbackspeed); }