summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Vehicle.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2019-07-17 12:24:04 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2019-07-17 12:24:04 +0200
commita9a62a8641571bb68564714907bb4bc1be29bc6c (patch)
treea780de15ce8d6fdd336fd10a96da39bc2a845cb1 /src/vehicles/Vehicle.cpp
parentmore fixes; started CAutomobile::ProcessControl (diff)
downloadre3-a9a62a8641571bb68564714907bb4bc1be29bc6c.tar
re3-a9a62a8641571bb68564714907bb4bc1be29bc6c.tar.gz
re3-a9a62a8641571bb68564714907bb4bc1be29bc6c.tar.bz2
re3-a9a62a8641571bb68564714907bb4bc1be29bc6c.tar.lz
re3-a9a62a8641571bb68564714907bb4bc1be29bc6c.tar.xz
re3-a9a62a8641571bb68564714907bb4bc1be29bc6c.tar.zst
re3-a9a62a8641571bb68564714907bb4bc1be29bc6c.zip
Diffstat (limited to 'src/vehicles/Vehicle.cpp')
-rw-r--r--src/vehicles/Vehicle.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vehicles/Vehicle.cpp b/src/vehicles/Vehicle.cpp
index 2781f9f5..3ef581a0 100644
--- a/src/vehicles/Vehicle.cpp
+++ b/src/vehicles/Vehicle.cpp
@@ -383,6 +383,9 @@ CVehicle::ProcessDelayedExplosion(void)
if(IsCar() && ((CAutomobile*)this)->m_bombType == 4 && (m_nBombTimer & 0xFE00) != 0xFE00)
DMAudio.PlayOneShot(m_audioEntityId, SOUND_CAR_BOMB_TICK, 0.0f);
+ if (m_nBombTimer != 0)
+ return;
+
if(FindPlayerVehicle() != this && m_pBlowUpEntity == FindPlayerPed())
CWorld::Players[CWorld::PlayerInFocus].AwardMoneyForExplosion(this);
BlowUpCar(m_pBlowUpEntity);