summaryrefslogtreecommitdiffstats
path: root/src/peds/CopPed.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-05-05 17:32:46 +0200
committerSergeanur <s.anureev@yandex.ua>2020-05-05 17:32:46 +0200
commit1eb817de7713ea95bbbcbd7543ffce61ced8ffec (patch)
treeb0032de7a7452f49df7d03254e1e1c9f25b98f0d /src/peds/CopPed.cpp
parentRemove ColStore (diff)
downloadre3-1eb817de7713ea95bbbcbd7543ffce61ced8ffec.tar
re3-1eb817de7713ea95bbbcbd7543ffce61ced8ffec.tar.gz
re3-1eb817de7713ea95bbbcbd7543ffce61ced8ffec.tar.bz2
re3-1eb817de7713ea95bbbcbd7543ffce61ced8ffec.tar.lz
re3-1eb817de7713ea95bbbcbd7543ffce61ced8ffec.tar.xz
re3-1eb817de7713ea95bbbcbd7543ffce61ced8ffec.tar.zst
re3-1eb817de7713ea95bbbcbd7543ffce61ced8ffec.zip
Diffstat (limited to '')
-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;