diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-07-27 15:04:05 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-07-28 16:04:34 +0200 |
commit | 429f6b03c44fe1df791865d976b456321b273859 (patch) | |
tree | d6086ec4cd97d717d1b43dbf69be7e085dbab1cc /src/peds/PedPlacement.cpp | |
parent | Merge pull request #664 from aap/miami (diff) | |
download | re3-429f6b03c44fe1df791865d976b456321b273859.tar re3-429f6b03c44fe1df791865d976b456321b273859.tar.gz re3-429f6b03c44fe1df791865d976b456321b273859.tar.bz2 re3-429f6b03c44fe1df791865d976b456321b273859.tar.lz re3-429f6b03c44fe1df791865d976b456321b273859.tar.xz re3-429f6b03c44fe1df791865d976b456321b273859.tar.zst re3-429f6b03c44fe1df791865d976b456321b273859.zip |
Diffstat (limited to 'src/peds/PedPlacement.cpp')
-rw-r--r-- | src/peds/PedPlacement.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/peds/PedPlacement.cpp b/src/peds/PedPlacement.cpp index 6011ce44..8012650a 100644 --- a/src/peds/PedPlacement.cpp +++ b/src/peds/PedPlacement.cpp @@ -4,7 +4,8 @@ #include "PedPlacement.h" #include "World.h" -void +// --MIAMI: Done +bool CPedPlacement::FindZCoorForPed(CVector* pos) { float zForPed; @@ -32,8 +33,11 @@ CPedPlacement::FindZCoorForPed(CVector* pos) zForPed = Max(foundColZ, foundColZ2); - if (zForPed > -99.0f) + if (zForPed > -99.0f) { pos->z = FEET_OFFSET + zForPed; + return true; + } + return false; } CEntity* |