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 | implemented CSkidmarks (diff) | |
parent | fix bug (diff) | |
download | re3-9176aef1b251fe08d536f69e383334015c94e146.tar re3-9176aef1b251fe08d536f69e383334015c94e146.tar.gz re3-9176aef1b251fe08d536f69e383334015c94e146.tar.bz2 re3-9176aef1b251fe08d536f69e383334015c94e146.tar.lz re3-9176aef1b251fe08d536f69e383334015c94e146.tar.xz re3-9176aef1b251fe08d536f69e383334015c94e146.tar.zst re3-9176aef1b251fe08d536f69e383334015c94e146.zip |
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 |