mirror of
https://github.com/mrxenginner/reVC.git
synced 2026-10-11 17:58:17 +08:00
Fix IsSphereVisible calls
This commit is contained in:
1 parent
50058371ef
commit
2ad3a75be5
5 files changed
+11
-17
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user