diff options
author | erorcun <erayorcunus@gmail.com> | 2020-07-28 16:05:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-28 16:05:20 +0200 |
commit | ef7afe5f2f1949cc4712c0f126edf79fe0a92d8b (patch) | |
tree | d6086ec4cd97d717d1b43dbf69be7e085dbab1cc /src/peds/PedPlacement.cpp | |
parent | Merge pull request #664 from aap/miami (diff) | |
parent | CCopPed, except spike traps (diff) | |
download | re3-ef7afe5f2f1949cc4712c0f126edf79fe0a92d8b.tar re3-ef7afe5f2f1949cc4712c0f126edf79fe0a92d8b.tar.gz re3-ef7afe5f2f1949cc4712c0f126edf79fe0a92d8b.tar.bz2 re3-ef7afe5f2f1949cc4712c0f126edf79fe0a92d8b.tar.lz re3-ef7afe5f2f1949cc4712c0f126edf79fe0a92d8b.tar.xz re3-ef7afe5f2f1949cc4712c0f126edf79fe0a92d8b.tar.zst re3-ef7afe5f2f1949cc4712c0f126edf79fe0a92d8b.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* |