summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-11-05 15:38:41 +0100
committerSergeanur <s.anureev@yandex.ua>2020-11-05 15:38:41 +0100
commit5a59542679d1b3d230392fe5c0147659818d3ab8 (patch)
tree0ac52ca2a6e74c82b7003a45e7257c5d987c129c /src
parentMerge pull request #795 from withmorten/master (diff)
downloadre3-5a59542679d1b3d230392fe5c0147659818d3ab8.tar
re3-5a59542679d1b3d230392fe5c0147659818d3ab8.tar.gz
re3-5a59542679d1b3d230392fe5c0147659818d3ab8.tar.bz2
re3-5a59542679d1b3d230392fe5c0147659818d3ab8.tar.lz
re3-5a59542679d1b3d230392fe5c0147659818d3ab8.tar.xz
re3-5a59542679d1b3d230392fe5c0147659818d3ab8.tar.zst
re3-5a59542679d1b3d230392fe5c0147659818d3ab8.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/Cam.cpp2
-rw-r--r--src/core/Pad.cpp7
2 files changed, 7 insertions, 2 deletions
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;