summaryrefslogtreecommitdiffstats
path: root/src/control/Garages.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-03-30 23:53:51 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-03-30 23:53:51 +0200
commitb3bfde0db0e820eefa4716715e7463500b59ff8c (patch)
treeb5d799ab407cc5d6bfbbfecc7ac8a9368db6c74f /src/control/Garages.cpp
parentbug fixes, reorganisation (diff)
downloadre3-b3bfde0db0e820eefa4716715e7463500b59ff8c.tar
re3-b3bfde0db0e820eefa4716715e7463500b59ff8c.tar.gz
re3-b3bfde0db0e820eefa4716715e7463500b59ff8c.tar.bz2
re3-b3bfde0db0e820eefa4716715e7463500b59ff8c.tar.lz
re3-b3bfde0db0e820eefa4716715e7463500b59ff8c.tar.xz
re3-b3bfde0db0e820eefa4716715e7463500b59ff8c.tar.zst
re3-b3bfde0db0e820eefa4716715e7463500b59ff8c.zip
Diffstat (limited to 'src/control/Garages.cpp')
-rw-r--r--src/control/Garages.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/control/Garages.cpp b/src/control/Garages.cpp
index c63818e1..805a2f5d 100644
--- a/src/control/Garages.cpp
+++ b/src/control/Garages.cpp
@@ -1859,7 +1859,10 @@ void CGarages::SetLeaveCameraForThisGarage(int16 garage)
aGarages[garage].m_bCameraFollowsPlayer = true;
}
-WRAPPER bool CGarages::IsThisCarWithinGarageArea(int16 garage, CEntity * pCar) { EAXJMP(0x427570); }
+bool CGarages::IsThisCarWithinGarageArea(int16 garage, CEntity * pCar)
+{
+ aGarages[garage].IsEntityEntirelyInside3D(pCar, 0.0f);
+}
bool CGarages::HasCarBeenCrushed(int32 handle)
{