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.
This commit is contained in:
AJ Martinez 2023-02-25 23:04:39 -07:00
parent dfafb95cea
commit 95317d635d

View file

@ -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)