mirror of
https://github.com/GTAmodding/re3.git
synced 2024-12-28 14:55:40 +00:00
Auto switch to remote grenade after detonator
This commit is contained in:
parent
0256790e1c
commit
80b7d52eeb
1 changed files with 2 additions and 1 deletions
|
@ -777,7 +777,8 @@ spentAmmoCheck:
|
|||
|
||||
// BUG: m_nSelectedWepSlot and GetWeapon(..) takes slot in VC but they compared them against weapon types in whole condition! jeez
|
||||
#ifdef FIX_BUGS
|
||||
if (m_nSelectedWepSlot == WEAPONSLOT_MELEE || GetWeapon(m_nSelectedWepSlot).m_nAmmoTotal > 0 && m_nSelectedWepSlot != WEAPONSLOT_PROJECTILE) {
|
||||
if (m_nSelectedWepSlot == WEAPONSLOT_MELEE ||
|
||||
GetWeapon(m_nSelectedWepSlot).m_nAmmoTotal > 0 && (m_nSelectedWepSlot != WEAPONSLOT_PROJECTILE || GetWeapon(WEAPONSLOT_PROJECTILE).m_eWeaponType == WEAPONTYPE_DETONATOR_GRENADE)) {
|
||||
#else
|
||||
if (m_nSelectedWepSlot == WEAPONTYPE_BASEBALLBAT && GetWeapon(WEAPONTYPE_BASEBALLBAT).m_eWeaponType == WEAPONTYPE_BASEBALLBAT
|
||||
|| GetWeapon(m_nSelectedWepSlot).m_nAmmoTotal > 0
|
||||
|
|
Loading…
Reference in a new issue