From 5a59542679d1b3d230392fe5c0147659818d3ab8 Mon Sep 17 00:00:00 2001 From: Sergeanur Date: Thu, 5 Nov 2020 16:38:41 +0200 Subject: Fix inverted vertical camera --- src/core/Cam.cpp | 2 +- src/core/Pad.cpp | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'src/core') diff --git a/src/core/Cam.cpp b/src/core/Cam.cpp index 7af652ad..7560a86e 100644 --- a/src/core/Cam.cpp +++ b/src/core/Cam.cpp @@ -4626,7 +4626,7 @@ CCam::Process_FollowPed_Rotation(const CVector &CameraTarget, float TargetOrient */ { LookLeftRight = -CPad::GetPad(0)->LookAroundLeftRight(); - LookUpDown = -CPad::GetPad(0)->LookAroundUpDown(); + LookUpDown = CPad::GetPad(0)->LookAroundUpDown(); } float AlphaOffset, BetaOffset; if(UseMouse){ diff --git a/src/core/Pad.cpp b/src/core/Pad.cpp index b723eb1d..6752c1c5 100644 --- a/src/core/Pad.cpp +++ b/src/core/Pad.cpp @@ -3222,6 +3222,9 @@ int16 CPad::SniperModeLookUpDown(void) int16 axis = NewState.LeftStickY; int16 dpad; +#ifdef FIX_BUGS + axis = -axis; +#endif if (CPad::bInvertLook4Pad) { axis = -axis; dpad = (NewState.DPadDown - NewState.DPadUp) / 2; @@ -3257,7 +3260,9 @@ int16 CPad::LookAroundLeftRight(void) int16 CPad::LookAroundUpDown(void) { int16 axis = GetPad(0)->NewState.RightStickY; - +#ifdef FIX_BUGS + axis = -axis; +#endif if (CPad::bInvertLook4Pad) axis = -axis; -- cgit v1.2.3