diff options
author | aap <aap@papnet.eu> | 2020-07-29 09:34:28 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-07-29 09:34:28 +0200 |
commit | fb4de46626b00079e169da562a0267126c1c1340 (patch) | |
tree | 30afeb6ed4245493dc7b8c87a52eb8b7c84e8c49 /src/peds/PedPlacement.cpp | |
parent | CCollision done and fixes (diff) | |
parent | Merge pull request #667 from erorcun/miami (diff) | |
download | re3-fb4de46626b00079e169da562a0267126c1c1340.tar re3-fb4de46626b00079e169da562a0267126c1c1340.tar.gz re3-fb4de46626b00079e169da562a0267126c1c1340.tar.bz2 re3-fb4de46626b00079e169da562a0267126c1c1340.tar.lz re3-fb4de46626b00079e169da562a0267126c1c1340.tar.xz re3-fb4de46626b00079e169da562a0267126c1c1340.tar.zst re3-fb4de46626b00079e169da562a0267126c1c1340.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* |