summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-10-08 21:44:32 +0200
committerGitHub <noreply@github.com>2020-10-08 21:44:32 +0200
commitb3b21e0af3414d021aba9082050b850c244c1b47 (patch)
tree598f7ad80dceb628edd3c6c7943f1b54a3374208 /src/core
parentMerge pull request #750 from erorcun/miami (diff)
parentFixes, some thanks to ASan (diff)
downloadre3-b3b21e0af3414d021aba9082050b850c244c1b47.tar
re3-b3b21e0af3414d021aba9082050b850c244c1b47.tar.gz
re3-b3b21e0af3414d021aba9082050b850c244c1b47.tar.bz2
re3-b3b21e0af3414d021aba9082050b850c244c1b47.tar.lz
re3-b3b21e0af3414d021aba9082050b850c244c1b47.tar.xz
re3-b3b21e0af3414d021aba9082050b850c244c1b47.tar.zst
re3-b3b21e0af3414d021aba9082050b850c244c1b47.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/Pad.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/Pad.cpp b/src/core/Pad.cpp
index aa6e5cc8..b723eb1d 100644
--- a/src/core/Pad.cpp
+++ b/src/core/Pad.cpp
@@ -3209,7 +3209,7 @@ int16 CPad::SniperModeLookLeftRight(void)
if ( Abs(axis) > Abs(dpad) ) {
if ( Abs(axis) > 35.0f ) {
- return (axis > 0.f ? axis - 35.f : axis + 35.f) * 1.3763441f;
+ return (axis > 0.f ? axis - 35.f : axis + 35.f) * (128.f / (128 - 35));
} else {
return 0;
}
@@ -3231,7 +3231,7 @@ int16 CPad::SniperModeLookUpDown(void)
if ( Abs(axis) > Abs(dpad) ) {
if ( Abs(axis) > 35.0f ) {
- return (axis > 0.f ? axis - 35.f : axis + 35.f) * 1.3763441f;
+ return (axis > 0.f ? axis - 35.f : axis + 35.f) * (128.f / (128 - 35));
} else {
return 0;
}
@@ -3573,4 +3573,4 @@ void CPad::FixPadsAfterSave(void)
bObsoleteControllerMessage = false;
GetPad(0)->Phase = 0;
}
-} \ No newline at end of file
+}