summaryrefslogtreecommitdiffstats
path: root/src/peds/PedAI.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-05-27 15:50:15 +0200
committerSergeanur <s.anureev@yandex.ua>2021-06-24 20:32:43 +0200
commit2ad3a75be5ba34d1376ad7c3fa7fc94adeaa32ac (patch)
tree15efc250158c790c0b73e44a7692dc21b0d9cc9c /src/peds/PedAI.cpp
parentCEntity and C(Vu)Vector fixes and cleanup (diff)
downloadre3-2ad3a75be5ba34d1376ad7c3fa7fc94adeaa32ac.tar
re3-2ad3a75be5ba34d1376ad7c3fa7fc94adeaa32ac.tar.gz
re3-2ad3a75be5ba34d1376ad7c3fa7fc94adeaa32ac.tar.bz2
re3-2ad3a75be5ba34d1376ad7c3fa7fc94adeaa32ac.tar.lz
re3-2ad3a75be5ba34d1376ad7c3fa7fc94adeaa32ac.tar.xz
re3-2ad3a75be5ba34d1376ad7c3fa7fc94adeaa32ac.tar.zst
re3-2ad3a75be5ba34d1376ad7c3fa7fc94adeaa32ac.zip
Diffstat (limited to '')
-rw-r--r--src/peds/PedAI.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/peds/PedAI.cpp b/src/peds/PedAI.cpp
index 7f7120af..f1c753ec 100644
--- a/src/peds/PedAI.cpp
+++ b/src/peds/PedAI.cpp
@@ -5362,7 +5362,7 @@ CPed::WarpPedToNearLeaderOffScreen(void)
continue;
appropriatePos.z = zCorrectedPos.z;
- if (!TheCamera.IsSphereVisible(appropriatePos, 0.6f, &TheCamera.GetCameraMatrix())
+ if (!TheCamera.IsSphereVisible(appropriatePos, 0.6f)
&& CWorld::GetIsLineOfSightClear(appropriatePos, warpToPos, true, true, false, true, false, false, false)
&& !CWorld::TestSphereAgainstWorld(appropriatePos, 0.6f, this, true, true, false, true, false, false)) {
teleported = true;
@@ -5396,7 +5396,7 @@ CPed::WarpPedToNearEntityOffScreen(CEntity *warpTo)
continue;
appropriatePos.z = zCorrectedPos.z;
- if (!TheCamera.IsSphereVisible(appropriatePos, 0.6f, &TheCamera.GetCameraMatrix())
+ if (!TheCamera.IsSphereVisible(appropriatePos, 0.6f)
&& CWorld::GetIsLineOfSightClear(appropriatePos, warpToPos, true, true, false, true, false, false, false)
&& !CWorld::TestSphereAgainstWorld(appropriatePos, 0.6f, this, true, true, false, true, false, false)) {
teleported = true;