summaryrefslogtreecommitdiffstats
path: root/src/core/World.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-11-11 10:21:30 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2020-11-11 10:21:30 +0100
commitbe929573289792f048fa5337489e39176b7691be (patch)
treeb9bfdfe1fc5c43200e6b4bd9cc54edd6a81b71c1 /src/core/World.cpp
parentMerge remote-tracking branch 'upstream/miami' into miami (diff)
downloadre3-be929573289792f048fa5337489e39176b7691be.tar
re3-be929573289792f048fa5337489e39176b7691be.tar.gz
re3-be929573289792f048fa5337489e39176b7691be.tar.bz2
re3-be929573289792f048fa5337489e39176b7691be.tar.lz
re3-be929573289792f048fa5337489e39176b7691be.tar.xz
re3-be929573289792f048fa5337489e39176b7691be.tar.zst
re3-be929573289792f048fa5337489e39176b7691be.zip
Diffstat (limited to 'src/core/World.cpp')
-rw-r--r--src/core/World.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/World.cpp b/src/core/World.cpp
index e3b8837f..4c700f10 100644
--- a/src/core/World.cpp
+++ b/src/core/World.cpp
@@ -1946,6 +1946,7 @@ CWorld::SetPedsChoking(float x, float y, float z, float radius, CEntity* reason)
int32 poolSize = CPools::GetPedPool()->GetSize();
for (int32 i = poolSize - 1; i >= 0; i--) {
CPed* pPed = CPools::GetPedPool()->GetSlot(i);
+ // suspicious copypaste
if (pPed && pPed->m_nPedState != PED_DEAD && !pPed->bInVehicle && !pPed->m_pFire && !pPed->bFireProof && pPed->CharCreatedBy != MISSION_CHAR) {
if (Abs(pPed->GetPosition().z - z) < 5.0f && Abs(pPed->GetPosition().x - x) < radius &&
Abs(pPed->GetPosition().y - y) < radius) {