From c0488b3190d1c5c9509b848cddab5e9a46f0a2e6 Mon Sep 17 00:00:00 2001 From: Sergeanur Date: Mon, 26 Jul 2021 20:40:55 +0300 Subject: Fix stuck looking flag when answering phone and idle weapon animation --- src/peds/Ped.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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); } } -- cgit v1.2.3