diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2019-08-03 15:01:13 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2019-08-03 15:01:13 +0200 |
commit | ebbcd92de28d37f1dd36c9120f92c958e394ff75 (patch) | |
tree | fc3d907017652eb186c0c690cc81a16feec46e22 /src/peds | |
parent | some CPed cleanup (diff) | |
download | re3-ebbcd92de28d37f1dd36c9120f92c958e394ff75.tar re3-ebbcd92de28d37f1dd36c9120f92c958e394ff75.tar.gz re3-ebbcd92de28d37f1dd36c9120f92c958e394ff75.tar.bz2 re3-ebbcd92de28d37f1dd36c9120f92c958e394ff75.tar.lz re3-ebbcd92de28d37f1dd36c9120f92c958e394ff75.tar.xz re3-ebbcd92de28d37f1dd36c9120f92c958e394ff75.tar.zst re3-ebbcd92de28d37f1dd36c9120f92c958e394ff75.zip |
Diffstat (limited to 'src/peds')
-rw-r--r-- | src/peds/Ped.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp index d05568f6..8b988772 100644 --- a/src/peds/Ped.cpp +++ b/src/peds/Ped.cpp @@ -5349,12 +5349,12 @@ CPed::CreateDeadPedWeaponPickups(void) // otherwise try another position (but disregard second check apparently) angleToPed += 3.14f; pickupPos = GetPosition(); - pickupPos.x = 1.5f * Sin(angleToPed); - pickupPos.y = 1.5f * Cos(angleToPed); + pickupPos.x += 1.5f * Sin(angleToPed); + pickupPos.y += 1.5f * Cos(angleToPed); pickupPos.z = CWorld::FindGroundZFor3DCoord(pickupPos.x, pickupPos.y, pickupPos.z, &found) + 0.5f; } if (found) - CPickups::GenerateNewOne_WeaponType(pickupPos, weapon, PICKUP_ONCE_TIMEOUT, min(weaponAmmo, CPickups::ms_maxAmmosForWeapons[weapon])); + CPickups::GenerateNewOne_WeaponType(pickupPos, weapon, PICKUP_ONCE_TIMEOUT, min(weaponAmmo, AmmoForWeapon_OnStreet[weapon])); } ClearWeapons(); } |