Add nights bumper specfic check

This commit is contained in:
NepDisk 2026-03-08 18:19:41 -04:00
parent edcb7dbe69
commit 86df6c78c6
2 changed files with 10 additions and 2 deletions

View file

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

View file

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