diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-05-05 17:32:46 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-05-05 17:32:46 +0200 |
commit | 1eb817de7713ea95bbbcbd7543ffce61ced8ffec (patch) | |
tree | b0032de7a7452f49df7d03254e1e1c9f25b98f0d /src/peds | |
parent | Remove ColStore (diff) | |
download | re3-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 'src/peds')
-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 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; |