summaryrefslogtreecommitdiffstats
path: root/src/peds
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-04-10 15:14:05 +0200
committerSergeanur <s.anureev@yandex.ua>2020-04-10 15:14:05 +0200
commit3a4442eca437863a79cebe70f4bd6ba73cc3a64d (patch)
tree122c36baf8d01bee911bd056f333dac88b4db6c7 /src/peds
parentMerge pull request #397 from Nick007J/master (diff)
downloadre3-3a4442eca437863a79cebe70f4bd6ba73cc3a64d.tar
re3-3a4442eca437863a79cebe70f4bd6ba73cc3a64d.tar.gz
re3-3a4442eca437863a79cebe70f4bd6ba73cc3a64d.tar.bz2
re3-3a4442eca437863a79cebe70f4bd6ba73cc3a64d.tar.lz
re3-3a4442eca437863a79cebe70f4bd6ba73cc3a64d.tar.xz
re3-3a4442eca437863a79cebe70f4bd6ba73cc3a64d.tar.zst
re3-3a4442eca437863a79cebe70f4bd6ba73cc3a64d.zip
Diffstat (limited to 'src/peds')
-rw-r--r--src/peds/Population.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/peds/Population.cpp b/src/peds/Population.cpp
index 3bf81066..dbfd40c6 100644
--- a/src/peds/Population.cpp
+++ b/src/peds/Population.cpp
@@ -704,12 +704,15 @@ CPopulation::AddToPopulation(float minDist, float maxDist, float minDistOffScree
if (i != 0) {
// Gang member
newPed->SetLeader(gangLeader);
+#ifndef FIX_BUGS
+ // seems to be a miami leftover (this code is not on PS2) but gang peds end up just being frozen
newPed->m_nPedState = PED_UNKNOWN;
gangLeader->m_nPedState = PED_UNKNOWN;
newPed->m_fRotationCur = CGeneral::GetRadianAngleBetweenPoints(
gangLeader->GetPosition().x, gangLeader->GetPosition().y,
newPed->GetPosition().x, newPed->GetPosition().y);
newPed->m_fRotationDest = newPed->m_fRotationCur;
+#endif
} else {
gangLeader = newPed;
}