diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-05-27 15:50:15 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-06-24 20:32:43 +0200 |
commit | 2ad3a75be5ba34d1376ad7c3fa7fc94adeaa32ac (patch) | |
tree | 15efc250158c790c0b73e44a7692dc21b0d9cc9c /src/peds/Population.cpp | |
parent | CEntity and C(Vu)Vector fixes and cleanup (diff) | |
download | re3-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 'src/peds/Population.cpp')
-rw-r--r-- | src/peds/Population.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/peds/Population.cpp b/src/peds/Population.cpp index 906ee6e9..edb5958d 100644 --- a/src/peds/Population.cpp +++ b/src/peds/Population.cpp @@ -706,8 +706,7 @@ CPopulation::AddToPopulation(float minDist, float maxDist, float minDistOffScree generatedCoors.z = Max(generatedCoors.z, groundZ); } bool farEnoughToAdd = true; - CMatrix mat(TheCamera.GetCameraMatrix()); - if (TheCamera.IsSphereVisible(generatedCoors, 2.0f, &mat)) { + if (TheCamera.IsSphereVisible(generatedCoors, 2.0f)) { if (PedCreationDistMultiplier() * MIN_CREATION_DIST > (generatedCoors - playerCentreOfWorld).Magnitude2D()) farEnoughToAdd = false; } |