From 86df6c78c6c9893b30aec0053845d4e2a640a763 Mon Sep 17 00:00:00 2001 From: NepDisk Date: Sun, 8 Mar 2026 18:19:41 -0400 Subject: [PATCH] Add nights bumper specfic check --- src/p_user.c | 6 +++++- src/r_patchrotation.c | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/p_user.c b/src/p_user.c index d5ced7f91..e74ae7b92 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -3892,7 +3892,11 @@ static angle_t P_GetCameraPitchRollAngle(mobj_t *mobj, player_t *viewPlayer) else { // For regular objects, use the camera; just not the *player's* camera. - viewingAngle = R_PointToAngleFloat(mobj->x, mobj->y); + //... Unless you are a Nights bumber... + if (mobj->type == MT_NIGHTSBUMPER) + viewingAngle = mobj->angle; + else + viewingAngle = R_PointToAngleFloat(mobj->x, mobj->y); } pitchMul = -FINESINE(viewingAngle >> ANGLETOFINESHIFT); diff --git a/src/r_patchrotation.c b/src/r_patchrotation.c index 251cfe141..8d7b08355 100644 --- a/src/r_patchrotation.c +++ b/src/r_patchrotation.c @@ -39,7 +39,11 @@ angle_t R_GetPitchRollAngle(mobj_t *mobj, player_t *viewPlayer, interpmobjstate_ else { // For regular objects, use the camera; just not the *player's* camera. - viewingAngle = R_PointToAngleFloat(mobj->x, mobj->y); + //... Unless you are a Nights bumber... + if (mobj->type == MT_NIGHTSBUMPER) + viewingAngle = mobj->angle; + else + viewingAngle = R_PointToAngleFloat(mobj->x, mobj->y); } pitchMul = -FINESINE(viewingAngle >> ANGLETOFINESHIFT);