summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-05-10 16:46:41 +0200
committerSergeanur <s.anureev@yandex.ua>2021-06-24 20:32:43 +0200
commit873c4fc81e38530000243ae7356f965a673c2b7e (patch)
tree8b62aaaae7c5b50c548f26c77eb45024358ef4c7 /src
parentfabs -> fabsf (diff)
downloadre3-873c4fc81e38530000243ae7356f965a673c2b7e.tar
re3-873c4fc81e38530000243ae7356f965a673c2b7e.tar.gz
re3-873c4fc81e38530000243ae7356f965a673c2b7e.tar.bz2
re3-873c4fc81e38530000243ae7356f965a673c2b7e.tar.lz
re3-873c4fc81e38530000243ae7356f965a673c2b7e.tar.xz
re3-873c4fc81e38530000243ae7356f965a673c2b7e.tar.zst
re3-873c4fc81e38530000243ae7356f965a673c2b7e.zip
Diffstat (limited to 'src')
-rw-r--r--src/peds/Ped.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp
index 52d6b130..936e039f 100644
--- a/src/peds/Ped.cpp
+++ b/src/peds/Ped.cpp
@@ -6990,7 +6990,14 @@ void
CPed::LookForSexyPeds(void)
{
if ((!IsPedInControl() && m_nPedState != PED_DRIVING)
- || m_lookTimer >= CTimer::GetTimeInMilliseconds() || m_nPedType != PEDTYPE_CIVMALE)
+ || m_lookTimer >= CTimer::GetTimeInMilliseconds() ||
+#ifdef FIX_BUGS
+ // gang members have these lines too
+ (!IsGangMember() && m_nPedType != PEDTYPE_CIVMALE)
+#else
+ m_nPedType != PEDTYPE_CIVMALE
+#endif
+ )
return;
for (int i = 0; i < m_numNearPeds; i++) {
@@ -6998,7 +7005,12 @@ CPed::LookForSexyPeds(void)
if ((GetPosition() - m_nearPeds[i]->GetPosition()).Magnitude() < 10.0f) {
CPed *nearPed = m_nearPeds[i];
if ((nearPed->m_pedStats->m_sexiness > m_pedStats->m_sexiness)
+#ifdef FIX_BUGS
+ // react to prostitutes as well
+ && ((nearPed->m_nPedType == PEDTYPE_CIVFEMALE) || (nearPed->m_nPedType == PEDTYPE_PROSTITUTE))) {
+#else
&& nearPed->m_nPedType == PEDTYPE_CIVFEMALE) {
+#endif
SetLookFlag(nearPed, true);
m_lookTimer = CTimer::GetTimeInMilliseconds() + 4000;