summaryrefslogtreecommitdiffstats
path: root/src/peds
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-11-13 11:19:54 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2020-11-13 11:19:54 +0100
commit2e915780aa7be1570e2ee018daae8c97cbc3290e (patch)
tree4b9f431d0f9bdff09abed3cb87390ed88f8511c4 /src/peds
parentMerge branch 'miami' of https://github.com/GTAmodding/re3 into miami (diff)
downloadre3-2e915780aa7be1570e2ee018daae8c97cbc3290e.tar
re3-2e915780aa7be1570e2ee018daae8c97cbc3290e.tar.gz
re3-2e915780aa7be1570e2ee018daae8c97cbc3290e.tar.bz2
re3-2e915780aa7be1570e2ee018daae8c97cbc3290e.tar.lz
re3-2e915780aa7be1570e2ee018daae8c97cbc3290e.tar.xz
re3-2e915780aa7be1570e2ee018daae8c97cbc3290e.tar.zst
re3-2e915780aa7be1570e2ee018daae8c97cbc3290e.zip
Diffstat (limited to 'src/peds')
-rw-r--r--src/peds/Ped.cpp2
-rw-r--r--src/peds/Ped.h2
2 files changed, 2 insertions, 2 deletions
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);