diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-05-05 17:33:32 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-05-05 17:33:32 +0200 |
commit | 12fbf8ceded75438d1c5ac532f83319405fbb02d (patch) | |
tree | 2062de5cd1582676c62ed4f8673eaa5d7ba8a2e4 /src/peds/CopPed.cpp | |
parent | Merge pull request #514 from Nick007J/miami (diff) | |
parent | Remove GTA_TRAIN, GTA_BRIDGE, GTA_ZONECULL (diff) | |
download | re3-12fbf8ceded75438d1c5ac532f83319405fbb02d.tar re3-12fbf8ceded75438d1c5ac532f83319405fbb02d.tar.gz re3-12fbf8ceded75438d1c5ac532f83319405fbb02d.tar.bz2 re3-12fbf8ceded75438d1c5ac532f83319405fbb02d.tar.lz re3-12fbf8ceded75438d1c5ac532f83319405fbb02d.tar.xz re3-12fbf8ceded75438d1c5ac532f83319405fbb02d.tar.zst re3-12fbf8ceded75438d1c5ac532f83319405fbb02d.zip |
Diffstat (limited to 'src/peds/CopPed.cpp')
-rw-r--r-- | src/peds/CopPed.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peds/CopPed.cpp b/src/peds/CopPed.cpp index 7140af76..0fb0b9e0 100644 --- a/src/peds/CopPed.cpp +++ b/src/peds/CopPed.cpp @@ -717,7 +717,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; |