diff options
author | Sergeanur <s.anureev@yandex.ua> | 2019-10-03 22:43:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-03 22:43:11 +0200 |
commit | a91df9889d279722b68c272601980bb9b6c03c34 (patch) | |
tree | 6ed22776f5a8fb85479baff3673de26b6e74f68a | |
parent | Merge pull request #220 from Sergeanur/Pickups (diff) | |
parent | Fix formatting mistakes (diff) | |
download | re3-a91df9889d279722b68c272601980bb9b6c03c34.tar re3-a91df9889d279722b68c272601980bb9b6c03c34.tar.gz re3-a91df9889d279722b68c272601980bb9b6c03c34.tar.bz2 re3-a91df9889d279722b68c272601980bb9b6c03c34.tar.lz re3-a91df9889d279722b68c272601980bb9b6c03c34.tar.xz re3-a91df9889d279722b68c272601980bb9b6c03c34.tar.zst re3-a91df9889d279722b68c272601980bb9b6c03c34.zip |
-rw-r--r-- | src/control/Pickups.cpp | 3 | ||||
-rw-r--r-- | src/render/MoneyMessages.cpp | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/control/Pickups.cpp b/src/control/Pickups.cpp index 1eb096a2..2d112592 100644 --- a/src/control/Pickups.cpp +++ b/src/control/Pickups.cpp @@ -252,8 +252,7 @@ CPickup::Update(CPlayerPed *player, CVehicle *vehicle, int playerId) printf("All collectables have been picked up\n");
CGarages::TriggerMessage("CO_ALL", -1, 5000, -1);
CWorld::Players[CWorld::PlayerInFocus].m_nMoney += 1000000;
- }
- else
+ } else
CGarages::TriggerMessage("CO_ONE", CWorld::Players[CWorld::PlayerInFocus].m_nCollectedPackages, 5000, CWorld::Players[CWorld::PlayerInFocus].m_nTotalPackages);
Remove();
diff --git a/src/render/MoneyMessages.cpp b/src/render/MoneyMessages.cpp index d80be276..53d6db58 100644 --- a/src/render/MoneyMessages.cpp +++ b/src/render/MoneyMessages.cpp @@ -55,7 +55,7 @@ void CMoneyMessages::Render()
{
for (int32 i = 0; i < NUMMONEYMESSAGES; i++) {
- if (aMoneyMessages[i].m_nTimeRegistered)
+ if (aMoneyMessages[i].m_nTimeRegistered != 0)
aMoneyMessages[i].Render();
}
}
|