mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-15 16:04:07 +00:00
Some TODOs done in Peds code
This commit is contained in:
parent
8f5e60f787
commit
164f16c85b
4 changed files with 20 additions and 17 deletions
|
@ -4712,9 +4712,7 @@ CPed::GiveWeapon(eWeaponType weaponType, uint32 ammo, bool unused)
|
|||
GetWeapon(slot).m_eWeaponState = WEAPONSTATE_READY;
|
||||
} else {
|
||||
if (HasWeaponSlot(slot)) {
|
||||
|
||||
// TODO(Miami): Make an enum for that
|
||||
if (slot == 4 || slot == 5 || slot == 6)
|
||||
if (CWeaponInfo::IsWeaponSlotAmmoMergeable(slot))
|
||||
ammo += GetWeapon(slot).m_nAmmoTotal;
|
||||
|
||||
RemoveWeaponModel(CWeaponInfo::GetWeaponInfo(GetWeapon(slot).m_eWeaponType)->m_nModelId);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue