mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-17 23:21:22 +00:00
Fix camera reset snap in simple controls
This commit is contained in:
parent
ebbe5938a8
commit
7fa9eed573
1 changed files with 7 additions and 1 deletions
|
@ -9781,7 +9781,13 @@ void P_ResetCamera(player_t *player, camera_t *thiscam)
|
|||
thiscam->y = y;
|
||||
thiscam->z = z;
|
||||
|
||||
if (!(thiscam == &camera && (cv_cam_still.value || cv_analog.value))
|
||||
if ((thiscam == &camera && cv_abilitydirection[0].value)
|
||||
|| (thiscam == &camera2 && cv_abilitydirection[1].value))
|
||||
{
|
||||
thiscam->angle = (thiscam == &camera) ? localangle : localangle2;
|
||||
thiscam->aiming = (thiscam == &camera) ? localaiming : localaiming2;
|
||||
}
|
||||
else if (!(thiscam == &camera && (cv_cam_still.value || cv_analog.value))
|
||||
&& !(thiscam == &camera2 && (cv_cam2_still.value || cv_analog2.value)))
|
||||
{
|
||||
thiscam->angle = player->mo->angle;
|
||||
|
|
Loading…
Reference in a new issue