summaryrefslogtreecommitdiffstats
path: root/src/peds/Ped.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2019-08-03 15:01:13 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2019-08-03 15:01:13 +0200
commitebbcd92de28d37f1dd36c9120f92c958e394ff75 (patch)
treefc3d907017652eb186c0c690cc81a16feec46e22 /src/peds/Ped.cpp
parentsome CPed cleanup (diff)
downloadre3-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/Ped.cpp')
-rw-r--r--src/peds/Ped.cpp6
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();
}