Add nights bumper specfic check
This commit is contained in:
parent
edcb7dbe69
commit
86df6c78c6
2 changed files with 10 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue