summaryrefslogtreecommitdiffstats
path: root/src/core/PlayerInfo.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-22 23:55:29 +0200
committerGitHub <noreply@github.com>2020-05-22 23:55:29 +0200
commit8fb72afac96434153d948d91685f7291e9b946d9 (patch)
tree25d4899924a591e4dafd44caf488dd9bf62db95e /src/core/PlayerInfo.cpp
parentMerge pull request #579 from Xinerki/miami (diff)
parentMerge remote-tracking branch 'upstream/miami' into miami (diff)
downloadre3-8fb72afac96434153d948d91685f7291e9b946d9.tar
re3-8fb72afac96434153d948d91685f7291e9b946d9.tar.gz
re3-8fb72afac96434153d948d91685f7291e9b946d9.tar.bz2
re3-8fb72afac96434153d948d91685f7291e9b946d9.tar.lz
re3-8fb72afac96434153d948d91685f7291e9b946d9.tar.xz
re3-8fb72afac96434153d948d91685f7291e9b946d9.tar.zst
re3-8fb72afac96434153d948d91685f7291e9b946d9.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