summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-04-13 14:21:26 +0200
committerSergeanur <s.anureev@yandex.ua>2020-04-13 14:21:26 +0200
commitd8be75ac46cf9e0e1056e94973cdf1c328bbf52e (patch)
tree1aa887a5a7b62d2b4bc0e3f42c970bf3dabbe100
parentMerge pull request #410 from Sergeanur/PacManPickups (diff)
downloadre3-d8be75ac46cf9e0e1056e94973cdf1c328bbf52e.tar
re3-d8be75ac46cf9e0e1056e94973cdf1c328bbf52e.tar.gz
re3-d8be75ac46cf9e0e1056e94973cdf1c328bbf52e.tar.bz2
re3-d8be75ac46cf9e0e1056e94973cdf1c328bbf52e.tar.lz
re3-d8be75ac46cf9e0e1056e94973cdf1c328bbf52e.tar.xz
re3-d8be75ac46cf9e0e1056e94973cdf1c328bbf52e.tar.zst
re3-d8be75ac46cf9e0e1056e94973cdf1c328bbf52e.zip
-rw-r--r--src/control/Pickups.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/control/Pickups.cpp b/src/control/Pickups.cpp
index 4b98bcbc..80e89ee8 100644
--- a/src/control/Pickups.cpp
+++ b/src/control/Pickups.cpp
@@ -1012,7 +1012,7 @@ CPacManPickup::Update()
float massMult = (veh->m_fMass + 250.0f) / veh->m_fMass;
veh->m_fMass *= massMult;
veh->m_fTurnMass *= massMult;
- veh->fForceMultiplier *= massMult;
+ veh->m_fForceMultiplier *= massMult;
FindPlayerPed()->m_pWanted->m_nChaos += 10;
FindPlayerPed()->m_pWanted->UpdateWantedLevel();
DMAudio.PlayFrontEndSound(SOUND_PICKUP_PACMAN_PACKAGE, 0);
@@ -1059,9 +1059,9 @@ CPacManPickups::Update()
if (dist < 10.0f) {
ThingsToCollect -= FindPlayerVehicle()->m_nPacManPickupsCarried;
FindPlayerVehicle()->m_nPacManPickupsCarried = 0;
- FindPlayerVehicle()->m_fMass /= FindPlayerVehicle()->fForceMultiplier;
- FindPlayerVehicle()->m_fTurnMass /= FindPlayerVehicle()->fForceMultiplier;
- FindPlayerVehicle()->fForceMultiplier = 1.0f;
+ FindPlayerVehicle()->m_fMass /= FindPlayerVehicle()->m_fForceMultiplier;
+ FindPlayerVehicle()->m_fTurnMass /= FindPlayerVehicle()->m_fForceMultiplier;
+ FindPlayerVehicle()->m_fForceMultiplier = 1.0f;
}
if (ThingsToCollect <= 0) {
CollectGameState = 2;
@@ -1400,9 +1400,9 @@ CPacManPickups::ResetPowerPillsCarriedByPlayer()
{
if (FindPlayerVehicle() != nil) {
FindPlayerVehicle()->m_nPacManPickupsCarried = 0;
- FindPlayerVehicle()->m_fMass /= FindPlayerVehicle()->fForceMultiplier;
- FindPlayerVehicle()->m_fTurnMass /= FindPlayerVehicle()->fForceMultiplier;
- FindPlayerVehicle()->fForceMultiplier = 1.0f;
+ FindPlayerVehicle()->m_fMass /= FindPlayerVehicle()->m_fForceMultiplier;
+ FindPlayerVehicle()->m_fTurnMass /= FindPlayerVehicle()->m_fForceMultiplier;
+ FindPlayerVehicle()->m_fForceMultiplier = 1.0f;
}
}