summaryrefslogtreecommitdiffstats
path: root/src/core/PlayerInfo.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-22 01:42:04 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-22 01:42:04 +0200
commit864847a6fe5461581232a68b64d98dd15d035330 (patch)
tree0d57b42ff992fa7afe651f6e74da950168aa030a /src/core/PlayerInfo.cpp
parentscript revision (diff)
downloadre3-864847a6fe5461581232a68b64d98dd15d035330.tar
re3-864847a6fe5461581232a68b64d98dd15d035330.tar.gz
re3-864847a6fe5461581232a68b64d98dd15d035330.tar.bz2
re3-864847a6fe5461581232a68b64d98dd15d035330.tar.lz
re3-864847a6fe5461581232a68b64d98dd15d035330.tar.xz
re3-864847a6fe5461581232a68b64d98dd15d035330.tar.zst
re3-864847a6fe5461581232a68b64d98dd15d035330.zip
Diffstat (limited to 'src/core/PlayerInfo.cpp')
-rw-r--r--src/core/PlayerInfo.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/PlayerInfo.cpp b/src/core/PlayerInfo.cpp
index 37a62adf..675fafb3 100644
--- a/src/core/PlayerInfo.cpp
+++ b/src/core/PlayerInfo.cpp
@@ -149,13 +149,14 @@ CPlayerInfo::Clear(void)
}
void
-CPlayerInfo::BlowUpRCBuggy(void)
+CPlayerInfo::BlowUpRCBuggy(bool actually)
{
if (!m_pRemoteVehicle || m_pRemoteVehicle->bRemoveFromWorld)
return;
CRemote::TakeRemoteControlledCarFromPlayer();
- m_pRemoteVehicle->BlowUpCar(FindPlayerPed());
+ if (actually)
+ m_pRemoteVehicle->BlowUpCar(FindPlayerPed());
}
void