diff options
author | aap <aap@papnet.eu> | 2020-04-08 16:36:53 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-04-08 18:45:55 +0200 |
commit | 9176aef1b251fe08d536f69e383334015c94e146 (patch) | |
tree | 27f3979748ae701790a87ce701a87a75c6d9f9a7 /src/control/Garages.cpp | |
parent | 6288d36f34444eff6900f889ef6344358e7ebee3 (diff) | |
parent | 5966e627f007d7d28b9073c01db73428e0b2796d (diff) |
Merge branch 'master' of github.com:gtamodding/re3
Diffstat (limited to 'src/control/Garages.cpp')
-rw-r--r-- | src/control/Garages.cpp | 4 |
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 |