diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-03-31 00:53:51 +0300 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-03-31 00:53:51 +0300 |
commit | b3bfde0db0e820eefa4716715e7463500b59ff8c (patch) | |
tree | b5d799ab407cc5d6bfbbfecc7ac8a9368db6c74f /src | |
parent | 24e4ecf5bbf8c419c9e303e46db18f1323175458 (diff) |
added forgotten function
Diffstat (limited to 'src')
-rw-r--r-- | src/control/Garages.cpp | 5 |
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) { |