summaryrefslogtreecommitdiffstats
path: root/src/peds/PedAI.cpp
diff options
context:
space:
mode:
authorerorcun <erorcunerorcun@hotmail.com.tr>2021-01-03 16:29:09 +0100
committererorcun <erorcunerorcun@hotmail.com.tr>2021-01-03 16:29:09 +0100
commit28ec412369b3f27c4e11d4ddc33c38c862686259 (patch)
tree435013d3f57ae605ac09d35d95710bbe061efc51 /src/peds/PedAI.cpp
parentSync miami things (diff)
downloadre3-28ec412369b3f27c4e11d4ddc33c38c862686259.tar
re3-28ec412369b3f27c4e11d4ddc33c38c862686259.tar.gz
re3-28ec412369b3f27c4e11d4ddc33c38c862686259.tar.bz2
re3-28ec412369b3f27c4e11d4ddc33c38c862686259.tar.lz
re3-28ec412369b3f27c4e11d4ddc33c38c862686259.tar.xz
re3-28ec412369b3f27c4e11d4ddc33c38c862686259.tar.zst
re3-28ec412369b3f27c4e11d4ddc33c38c862686259.zip
Diffstat (limited to '')
-rw-r--r--src/peds/PedAI.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/peds/PedAI.cpp b/src/peds/PedAI.cpp
index cc27992c..43592d80 100644
--- a/src/peds/PedAI.cpp
+++ b/src/peds/PedAI.cpp
@@ -2037,7 +2037,8 @@ CPed::SelectGunIfArmed(void)
for (int i = 0; i < m_maxWeaponTypeAllowed; i++) {
if (GetWeapon(i).m_nAmmoTotal > 0) {
eWeaponType weaponType = GetWeapon(i).m_eWeaponType;
- if (weaponType >= WEAPONTYPE_COLT45 && weaponType != WEAPONTYPE_M16 && weaponType <= WEAPONTYPE_FLAMETHROWER) {
+ if (weaponType == WEAPONTYPE_BASEBALLBAT || weaponType == WEAPONTYPE_COLT45 || weaponType == WEAPONTYPE_UZI || weaponType == WEAPONTYPE_SHOTGUN ||
+ weaponType == WEAPONTYPE_M16 || weaponType == WEAPONTYPE_SNIPERRIFLE || weaponType == WEAPONTYPE_ROCKETLAUNCHER) {
SetCurrentWeapon(i);
return true;
}