summaryrefslogtreecommitdiffstats
path: root/src/peds/PedAI.cpp
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2020-12-16 21:28:25 +0100
committererorcun <erorcunerorcun@hotmail.com.tr>2020-12-16 21:28:25 +0100
commit12d16ddc063bc442c9366aff189f67827aeb09af (patch)
tree03f4872d235109bcdd66c660c57a3ec883192dc1 /src/peds/PedAI.cpp
parentupdate librw with stencil states (diff)
downloadre3-12d16ddc063bc442c9366aff189f67827aeb09af.tar
re3-12d16ddc063bc442c9366aff189f67827aeb09af.tar.gz
re3-12d16ddc063bc442c9366aff189f67827aeb09af.tar.bz2
re3-12d16ddc063bc442c9366aff189f67827aeb09af.tar.lz
re3-12d16ddc063bc442c9366aff189f67827aeb09af.tar.xz
re3-12d16ddc063bc442c9366aff189f67827aeb09af.tar.zst
re3-12d16ddc063bc442c9366aff189f67827aeb09af.zip
Diffstat (limited to 'src/peds/PedAI.cpp')
-rw-r--r--src/peds/PedAI.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/peds/PedAI.cpp b/src/peds/PedAI.cpp
index 88d0a091..d5705a2f 100644
--- a/src/peds/PedAI.cpp
+++ b/src/peds/PedAI.cpp
@@ -5901,11 +5901,11 @@ CPed::Duck(void)
CWeaponInfo *weapon = CWeaponInfo::GetWeaponInfo(GetWeapon()->m_eWeaponType);
CAnimBlendAssociation *attackAssoc = RpAnimBlendClumpGetAssociation(GetClump(), ANIM_WEAPON_CROUCH);
if (!attackAssoc) {
- if(!!weapon->m_bCrouchFire)
+ if(GetCrouchFireAnim(weapon))
attackAssoc = RpAnimBlendClumpGetAssociation(GetClump(), GetCrouchFireAnim(weapon));
}
if (!attackAssoc) {
- if(!!weapon->m_bReload)
+ if(GetCrouchReloadAnim(weapon))
attackAssoc = RpAnimBlendClumpGetAssociation(GetClump(), GetCrouchReloadAnim(weapon));
}
if (!attackAssoc) {