From 95317d635df9013e0044fa155dfeca0c833a6f3e Mon Sep 17 00:00:00 2001 From: AJ Martinez Date: Sat, 25 Feb 2023 23:04:39 -0700 Subject: [PATCH] Fix upward wind harlem shaking your camera This has not worked for an unknown period of time, but in this branch it was broken enough that it spun your turning intent out of control. --- src/p_spec.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/p_spec.c b/src/p_spec.c index e252bf374..0317599e4 100644 --- a/src/p_spec.c +++ b/src/p_spec.c @@ -9100,15 +9100,17 @@ void T_Pusher(pusher_t *p) thing->player->carry = CR_SLIDING; thing->angle = R_PointToAngle2(0, 0, xspeed, yspeed); + if (!demo.playback) { - angle_t angle = thing->player->angleturn; + angle_t angle = thing->player->boostangle; if (thing->angle - angle > ANGLE_180) - P_SetPlayerAngle(thing->player, angle - (angle - thing->angle) / 8); + thing->player->boostangle = angle - (angle - thing->angle) / 8; else - P_SetPlayerAngle(thing->player, angle + (thing->angle - angle) / 8); + thing->player->boostangle = angle + (thing->angle - angle) / 8; //P_SetPlayerAngle(thing->player, thing->angle); } + } if (p->exclusive)