summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorshfil <filip.gawin@zoho.com>2020-09-26 20:11:25 +0200
committerGitHub <noreply@github.com>2020-09-26 20:11:25 +0200
commitdb1137b5a1fba7dde4b1493f9ddd01890a6af801 (patch)
treedf6fcb6dfd0364957e594e46da468cfa47b55148 /src/control
parentFix coronas reflections (diff)
parentfixed tab (diff)
downloadre3-db1137b5a1fba7dde4b1493f9ddd01890a6af801.tar
re3-db1137b5a1fba7dde4b1493f9ddd01890a6af801.tar.gz
re3-db1137b5a1fba7dde4b1493f9ddd01890a6af801.tar.bz2
re3-db1137b5a1fba7dde4b1493f9ddd01890a6af801.tar.lz
re3-db1137b5a1fba7dde4b1493f9ddd01890a6af801.tar.xz
re3-db1137b5a1fba7dde4b1493f9ddd01890a6af801.tar.zst
re3-db1137b5a1fba7dde4b1493f9ddd01890a6af801.zip
Diffstat (limited to 'src/control')
-rw-r--r--src/control/Garages.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/control/Garages.cpp b/src/control/Garages.cpp
index c9112f81..e1f06c97 100644
--- a/src/control/Garages.cpp
+++ b/src/control/Garages.cpp
@@ -1886,7 +1886,13 @@ CVehicle* CStoredCar::RestoreCar()
#ifdef FIX_BUGS
if (pVehicle->IsCar())
#endif
+ {
((CAutomobile*)pVehicle)->m_bombType = m_nCarBombType;
+#ifdef FIX_BUGS
+ if (m_nCarBombType != CARBOMB_NONE)
+ ((CAutomobile*)pVehicle)->m_pBombRigger = FindPlayerPed();
+#endif
+ }
pVehicle->bHasBeenOwnedByPlayer = true;
pVehicle->m_nDoorLock = CARLOCK_UNLOCKED;
pVehicle->bBulletProof = m_bBulletproof;