diff options
author | erorcun <erayorcunus@gmail.com> | 2020-05-15 20:30:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-15 20:30:57 +0200 |
commit | 8ff72f0728acbba293580042135f43268fa340fe (patch) | |
tree | 23cb65ca52efe5e964423ee50eff0e60ce8e155a /src/vehicles/Automobile.cpp | |
parent | CPedIK (diff) | |
parent | Weapon layer in Peds (diff) | |
download | re3-8ff72f0728acbba293580042135f43268fa340fe.tar re3-8ff72f0728acbba293580042135f43268fa340fe.tar.gz re3-8ff72f0728acbba293580042135f43268fa340fe.tar.bz2 re3-8ff72f0728acbba293580042135f43268fa340fe.tar.lz re3-8ff72f0728acbba293580042135f43268fa340fe.tar.xz re3-8ff72f0728acbba293580042135f43268fa340fe.tar.zst re3-8ff72f0728acbba293580042135f43268fa340fe.zip |
Diffstat (limited to 'src/vehicles/Automobile.cpp')
-rw-r--r-- | src/vehicles/Automobile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp index 6fc0436c..6e88b997 100644 --- a/src/vehicles/Automobile.cpp +++ b/src/vehicles/Automobile.cpp @@ -3018,7 +3018,7 @@ CAutomobile::DoDriveByShootings(void) { CAnimBlendAssociation *anim; CWeapon *weapon = pDriver->GetWeapon(); - if(weapon->m_eWeaponType != WEAPONTYPE_UZI) + if(CWeaponInfo::GetWeaponInfo(weapon->m_eWeaponType)->m_nWeaponSlot != 5) return; weapon->Update(pDriver->m_audioEntityId); |