summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-08-24 22:01:51 +0200
committerSergeanur <s.anureev@yandex.ua>2020-08-24 22:01:51 +0200
commit963e85f047965e0c0a1a8e50ca35e9368a2028b6 (patch)
tree322d8cfc3b347a457ae5e74a5e7b7a5745d82a5e
parentRemote done (diff)
downloadre3-963e85f047965e0c0a1a8e50ca35e9368a2028b6.tar
re3-963e85f047965e0c0a1a8e50ca35e9368a2028b6.tar.gz
re3-963e85f047965e0c0a1a8e50ca35e9368a2028b6.tar.bz2
re3-963e85f047965e0c0a1a8e50ca35e9368a2028b6.tar.lz
re3-963e85f047965e0c0a1a8e50ca35e9368a2028b6.tar.xz
re3-963e85f047965e0c0a1a8e50ca35e9368a2028b6.tar.zst
re3-963e85f047965e0c0a1a8e50ca35e9368a2028b6.zip
-rw-r--r--src/control/Remote.cpp4
-rw-r--r--src/control/Remote.h2
-rw-r--r--src/core/PlayerInfo.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/control/Remote.cpp b/src/control/Remote.cpp
index 714f9843..164a2f4c 100644
--- a/src/control/Remote.cpp
+++ b/src/control/Remote.cpp
@@ -45,7 +45,7 @@ CRemote::GivePlayerRemoteControlledCar(float x, float y, float z, float rot, uin
}
void
-CRemote::TakeRemoteControlledCarFromPlayer(bool unk)
+CRemote::TakeRemoteControlledCarFromPlayer(bool blowUp)
{
if (CWorld::Players[CWorld::PlayerInFocus].m_pRemoteVehicle->VehicleCreatedBy == MISSION_VEHICLE) {
CWorld::Players[CWorld::PlayerInFocus].m_pRemoteVehicle->VehicleCreatedBy = RANDOM_VEHICLE;
@@ -55,6 +55,6 @@ CRemote::TakeRemoteControlledCarFromPlayer(bool unk)
CWorld::Players[CWorld::PlayerInFocus].m_pRemoteVehicle->bIsLocked = false;
CWorld::Players[CWorld::PlayerInFocus].m_nTimeLostRemoteCar = CTimer::GetTimeInMilliseconds();
CWorld::Players[CWorld::PlayerInFocus].m_bInRemoteMode = true;
- CWorld::Players[CWorld::PlayerInFocus].field_D5 = unk;
+ CWorld::Players[CWorld::PlayerInFocus].field_D5 = blowUp;
CWorld::Players[CWorld::PlayerInFocus].field_D6 = true;
}
diff --git a/src/control/Remote.h b/src/control/Remote.h
index 250641ca..72cabb7c 100644
--- a/src/control/Remote.h
+++ b/src/control/Remote.h
@@ -4,5 +4,5 @@ class CRemote
{
public:
static void GivePlayerRemoteControlledCar(float, float, float, float, uint16);
- static void TakeRemoteControlledCarFromPlayer(bool);
+ static void TakeRemoteControlledCarFromPlayer(bool blowUp = true);
};
diff --git a/src/core/PlayerInfo.cpp b/src/core/PlayerInfo.cpp
index 256bc1b7..61e2f67a 100644
--- a/src/core/PlayerInfo.cpp
+++ b/src/core/PlayerInfo.cpp
@@ -188,7 +188,7 @@ CPlayerInfo::BlowUpRCBuggy(bool actually)
if (!m_pRemoteVehicle || m_pRemoteVehicle->bRemoveFromWorld)
return;
- CRemote::TakeRemoteControlledCarFromPlayer();
+ CRemote::TakeRemoteControlledCarFromPlayer(actually);
if (actually)
m_pRemoteVehicle->BlowUpCar(FindPlayerPed());
}