From a5b5712be9a5378312777264615b37ef517464d7 Mon Sep 17 00:00:00 2001 From: toaster Date: Sun, 13 Oct 2019 16:15:46 +0100 Subject: [PATCH] Fixed NiGHTS spawnpoint angle camera jump fuckups. --- src/p_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_user.c b/src/p_user.c index 0ec26000a..33f84e2db 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -898,7 +898,7 @@ void P_NightserizePlayer(player_t *player, INT32 nighttime) if (player->mo->target) { player->angle_pos = R_PointToAngle2(player->mo->target->x, player->mo->target->y, player->mo->x, player->mo->y); - player->drawangle = player->mo->angle = player->angle_pos + player->drawangle = player->angle_pos + ((player->mo->target->flags2 & MF2_AMBUSH) ? // if axis is invert, take the opposite right angle -ANGLE_90 : ANGLE_90); // flyangle is always 0 here, below is kept for posterity /*(player->flyangle > 90 && player->flyangle < 270 ? ANGLE_90 : -ANGLE_90)