From 2e915780aa7be1570e2ee018daae8c97cbc3290e Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Fri, 13 Nov 2020 13:19:54 +0300 Subject: some fixes --- src/peds/Ped.cpp | 2 +- src/peds/Ped.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/peds') diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp index 1b6c0a3b..8c4f7fec 100644 --- a/src/peds/Ped.cpp +++ b/src/peds/Ped.cpp @@ -20077,7 +20077,7 @@ CPed::Load(uint8*& buf) CStreaming::LoadAllRequestedModels(false); } - GiveWeapon(bufWeapon.m_eWeaponType, bufWeapon.m_nAmmoTotal); + GiveWeapon(bufWeapon.m_eWeaponType, bufWeapon.m_nAmmoTotal, false); } } SkipSaveBuf(buf, 252); diff --git a/src/peds/Ped.h b/src/peds/Ped.h index 6fc9ab67..00ce48f4 100644 --- a/src/peds/Ped.h +++ b/src/peds/Ped.h @@ -703,7 +703,7 @@ public: void PlayFootSteps(void); void QuitEnteringCar(void); void BuildPedLists(void); - int32 GiveWeapon(eWeaponType weaponType, uint32 ammo, bool unused = false); + int32 GiveWeapon(eWeaponType weaponType, uint32 ammo, bool unused = true); void CalculateNewOrientation(void); float WorkOutHeadingForMovingFirstPerson(float); void CalculateNewVelocity(void); -- cgit v1.2.3