mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 12:31:54 +00:00
Fix camera reset snap in simple controls
This commit is contained in:
parent
0577c151ce
commit
b4924fdfed
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->y = y;
|
||||||
thiscam->z = z;
|
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 == &camera2 && (cv_cam2_still.value || cv_analog2.value)))
|
||||||
{
|
{
|
||||||
thiscam->angle = player->mo->angle;
|
thiscam->angle = player->mo->angle;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue