diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-08 22:29:43 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-08 22:29:43 +0200 |
commit | 7e753c259680a13c656bdc6c86d99a4891616474 (patch) | |
tree | 7cc9674c62784eba25109dee499bd73056a4e62f /src/peds/PedPlacement.cpp | |
parent | fix (diff) | |
download | re3-7e753c259680a13c656bdc6c86d99a4891616474.tar re3-7e753c259680a13c656bdc6c86d99a4891616474.tar.gz re3-7e753c259680a13c656bdc6c86d99a4891616474.tar.bz2 re3-7e753c259680a13c656bdc6c86d99a4891616474.tar.lz re3-7e753c259680a13c656bdc6c86d99a4891616474.tar.xz re3-7e753c259680a13c656bdc6c86d99a4891616474.tar.zst re3-7e753c259680a13c656bdc6c86d99a4891616474.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 2d4a92fa..6011ce44 100644 --- a/src/peds/PedPlacement.cpp +++ b/src/peds/PedPlacement.cpp @@ -43,9 +43,13 @@ CPedPlacement::IsPositionClearOfCars(Const CVector *pos) } bool -CPedPlacement::IsPositionClearForPed(CVector* pos) +CPedPlacement::IsPositionClearForPed(const CVector& pos, float radius, int total, CEntity** entities) { int16 count; - CWorld::FindObjectsKindaColliding(*pos, 0.75f, true, &count, 2, nil, false, true, true, false, false); + if (radius == -1.0f) + radius = 0.75f; + if (total == -1) + total = 2; + CWorld::FindObjectsKindaColliding(pos, radius, true, &count, total, entities, false, true, true, false, false); return count == 0; } |