summaryrefslogtreecommitdiffstats
path: root/src/peds/PedPlacement.cpp
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2020-07-28 16:05:20 +0200
committerGitHub <noreply@github.com>2020-07-28 16:05:20 +0200
commitef7afe5f2f1949cc4712c0f126edf79fe0a92d8b (patch)
treed6086ec4cd97d717d1b43dbf69be7e085dbab1cc /src/peds/PedPlacement.cpp
parentMerge pull request #664 from aap/miami (diff)
parentCCopPed, except spike traps (diff)
downloadre3-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.cpp8
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*