summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2019-10-03 22:34:02 +0200
committerSergeanur <s.anureev@yandex.ua>2019-10-03 22:34:02 +0200
commit999765aadd7be0e2179243fa60bde729272b4c2d (patch)
treebdf0cb781dd777239f00b0e105cb22847622700d
parentChecks rewritten (diff)
downloadre3-999765aadd7be0e2179243fa60bde729272b4c2d.tar
re3-999765aadd7be0e2179243fa60bde729272b4c2d.tar.gz
re3-999765aadd7be0e2179243fa60bde729272b4c2d.tar.bz2
re3-999765aadd7be0e2179243fa60bde729272b4c2d.tar.lz
re3-999765aadd7be0e2179243fa60bde729272b4c2d.tar.xz
re3-999765aadd7be0e2179243fa60bde729272b4c2d.tar.zst
re3-999765aadd7be0e2179243fa60bde729272b4c2d.zip
-rw-r--r--src/control/Pickups.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/control/Pickups.cpp b/src/control/Pickups.cpp
index 733b3a7f..1eb096a2 100644
--- a/src/control/Pickups.cpp
+++ b/src/control/Pickups.cpp
@@ -192,9 +192,7 @@ CPickup::Update(CPlayerPed *player, CVehicle *vehicle, int playerId)
case PICKUP_IN_SHOP:
if (CWorld::Players[playerId].m_nMoney < CostOfWeapon[CPickups::WeaponForModel(m_pObject->GetModelIndex())]) {
CGarages::TriggerMessage("PU_MONY", -1, 6000, -1);
- }
- else
- {
+ } else {
CWorld::Players[playerId].m_nMoney -= CostOfWeapon[CPickups::WeaponForModel(m_pObject->GetModelIndex())];
if (!CPickups::GivePlayerGoodiesWithPickUpMI(m_pObject->GetModelIndex(), playerId)) {
player->GiveWeapon(CPickups::WeaponForModel(m_pObject->GetModelIndex()), AmmoForWeapon[CPickups::WeaponForModel(m_pObject->GetModelIndex())]);
@@ -215,9 +213,7 @@ CPickup::Update(CPlayerPed *player, CVehicle *vehicle, int playerId)
player->m_nSelectedWepSlot = player->GetWeaponSlot(CPickups::WeaponForModel(m_pObject->GetModelIndex()));
}
DMAudio.PlayFrontEndSound(SOUND_PICKUP_WEAPON, m_pObject->GetModelIndex() - MI_GRENADE);
- }
- else if (m_pObject->GetModelIndex() == MI_PICKUP_CAMERA && vehicle != nil)
- {
+ } else if (m_pObject->GetModelIndex() == MI_PICKUP_CAMERA && vehicle != nil) {
DMAudio.PlayFrontEndSound(SOUND_PICKUP_BONUS, 0);
CPickups::bPickUpcamActivated = true;
CPickups::pPlayerVehicle = FindPlayerVehicle();