summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-04-08 13:06:27 +0200
committerGitHub <noreply@github.com>2020-04-08 13:06:27 +0200
commit8e29a5ec884842e0c445b3fb00b359386b7dca3e (patch)
tree83cd7f06d4c3d2356384272ade62d0ef1977b9c2 /src
parentReverting tabs back to spaces for aap (diff)
downloadre3-8e29a5ec884842e0c445b3fb00b359386b7dca3e.tar
re3-8e29a5ec884842e0c445b3fb00b359386b7dca3e.tar.gz
re3-8e29a5ec884842e0c445b3fb00b359386b7dca3e.tar.bz2
re3-8e29a5ec884842e0c445b3fb00b359386b7dca3e.tar.lz
re3-8e29a5ec884842e0c445b3fb00b359386b7dca3e.tar.xz
re3-8e29a5ec884842e0c445b3fb00b359386b7dca3e.tar.zst
re3-8e29a5ec884842e0c445b3fb00b359386b7dca3e.zip
Diffstat (limited to 'src')
-rw-r--r--src/control/Garages.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/Garages.cpp b/src/control/Garages.cpp
index 9e10af2d..84d49bee 100644
--- a/src/control/Garages.cpp
+++ b/src/control/Garages.cpp
@@ -1679,7 +1679,7 @@ float CGarage::CalcDistToGarageRectangleSquared(float X, float Y)
else
distX = 0.0f;
if (Y < m_fY1)
- distY = m_fY1 - X;
+ distY = m_fY1 - Y;
else if (Y > m_fY2)
distY = Y - m_fY2;
else
@@ -2358,4 +2358,4 @@ STARTPATCHES
InjectHook(0x427AB0, CGarages::IsPointInAGarageCameraZone, PATCH_JUMP); // CCamera::CamControl
InjectHook(0x427BC0, CGarages::CameraShouldBeOutside, PATCH_JUMP); // CCamera::CamControl
InjectHook(0x428940, CGarages::Load, PATCH_JUMP); // GenericLoad
-ENDPATCHES \ No newline at end of file
+ENDPATCHES