summaryrefslogtreecommitdiffstats
path: root/src/peds
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-07-26 19:40:55 +0200
committerSergeanur <s.anureev@yandex.ua>2021-07-26 19:40:55 +0200
commitc0488b3190d1c5c9509b848cddab5e9a46f0a2e6 (patch)
tree1c432a0ab0e2d6c34fbf160c5547b092e3fd4025 /src/peds
parentFix bike kick sound (diff)
downloadre3-c0488b3190d1c5c9509b848cddab5e9a46f0a2e6.tar
re3-c0488b3190d1c5c9509b848cddab5e9a46f0a2e6.tar.gz
re3-c0488b3190d1c5c9509b848cddab5e9a46f0a2e6.tar.bz2
re3-c0488b3190d1c5c9509b848cddab5e9a46f0a2e6.tar.lz
re3-c0488b3190d1c5c9509b848cddab5e9a46f0a2e6.tar.xz
re3-c0488b3190d1c5c9509b848cddab5e9a46f0a2e6.tar.zst
re3-c0488b3190d1c5c9509b848cddab5e9a46f0a2e6.zip
Diffstat (limited to 'src/peds')
-rw-r--r--src/peds/Ped.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp
index 002cbe3b..eadd9d64 100644
--- a/src/peds/Ped.cpp
+++ b/src/peds/Ped.cpp
@@ -7291,6 +7291,9 @@ CPed::SetAnswerMobile(void)
{
if (m_nPedState != PED_ANSWER_MOBILE && !DyingOrDead()) {
SetPedState(PED_ANSWER_MOBILE);
+#ifdef FIX_BUGS
+ ClearLookFlag();
+#endif
RemoveWeaponAnims(GetWeapon()->m_eWeaponType, -4.0f);
CAnimBlendAssociation *assoc = CAnimManager::BlendAnimation(GetClump(), ASSOCGRP_STD, ANIM_STD_PHONE_IN, 4.0f);
assoc->SetFinishCallback(StartTalkingOnMobileCB, this);
@@ -7298,6 +7301,9 @@ CPed::SetAnswerMobile(void)
if (m_storedWeapon == WEAPONTYPE_UNIDENTIFIED)
m_storedWeapon = GetWeapon()->m_eWeaponType;
+#ifdef FIX_BUGS
+ SetCurrentWeapon(0);
+#endif
RemoveWeaponModel(-1);
}
}