summaryrefslogtreecommitdiff
path: root/src/peds/CopPed.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-05-05 18:32:46 +0300
committerSergeanur <s.anureev@yandex.ua>2020-05-05 18:32:46 +0300
commit1eb817de7713ea95bbbcbd7543ffce61ced8ffec (patch)
treeb0032de7a7452f49df7d03254e1e1c9f25b98f0d /src/peds/CopPed.cpp
parent0163a7bc4678be0817885929e10700196d0bb6e9 (diff)
Remove GTA_TRAIN, GTA_BRIDGE, GTA_ZONECULL
Diffstat (limited to 'src/peds/CopPed.cpp')
-rw-r--r--src/peds/CopPed.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peds/CopPed.cpp b/src/peds/CopPed.cpp
index 72c89df2..99e8c1ae 100644
--- a/src/peds/CopPed.cpp
+++ b/src/peds/CopPed.cpp
@@ -709,7 +709,7 @@ CCopPed::ProcessControl(void)
return;
bool dontShoot = false;
- if (GetIsOnScreenAndNotCulled()) {
+ if (GetIsOnScreen() && CRenderer::IsEntityCullZoneVisible(this)) {
if (((CTimer::GetFrameCounter() + m_randomSeed) & 0x1F) == 17) {
CEntity *foundBuilding = nil;
CColPoint foundCol;