From 28ec412369b3f27c4e11d4ddc33c38c862686259 Mon Sep 17 00:00:00 2001 From: erorcun Date: Sun, 3 Jan 2021 18:29:09 +0300 Subject: Ped: PlayerPed: sync with master --- src/peds/PedAI.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/peds/PedAI.cpp') 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; } -- cgit v1.2.3