summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2019-07-26 09:44:56 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2019-07-26 09:44:56 +0200
commitfe53007919c075c38ad456e85c97f7ed46417749 (patch)
tree4d1ba5b96fc2d1e938037e93b48e3e4aa03267d5 /src/control
parentMerge pull request #163 from Nick007J/master (diff)
downloadre3-fe53007919c075c38ad456e85c97f7ed46417749.tar
re3-fe53007919c075c38ad456e85c97f7ed46417749.tar.gz
re3-fe53007919c075c38ad456e85c97f7ed46417749.tar.bz2
re3-fe53007919c075c38ad456e85c97f7ed46417749.tar.lz
re3-fe53007919c075c38ad456e85c97f7ed46417749.tar.xz
re3-fe53007919c075c38ad456e85c97f7ed46417749.tar.zst
re3-fe53007919c075c38ad456e85c97f7ed46417749.zip
Diffstat (limited to 'src/control')
-rw-r--r--src/control/Remote.cpp2
-rw-r--r--src/control/Remote.h2
-rw-r--r--src/control/Script.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/control/Remote.cpp b/src/control/Remote.cpp
index c9ae0d8c..32ee4eda 100644
--- a/src/control/Remote.cpp
+++ b/src/control/Remote.cpp
@@ -2,5 +2,5 @@
#include "patcher.h"
#include "Remote.h"
-WRAPPER void CRemote::GivePlayerRemoteControlledCar(float, float, float, float) { EAXJMP(0x435C30); }
+WRAPPER void CRemote::GivePlayerRemoteControlledCar(float, float, float, float, uint16) { EAXJMP(0x435C30); }
WRAPPER void CRemote::TakeRemoteControlledCarFromPlayer(void) { EAXJMP(0x435DA0); }
diff --git a/src/control/Remote.h b/src/control/Remote.h
index b4482b2d..5e474586 100644
--- a/src/control/Remote.h
+++ b/src/control/Remote.h
@@ -3,6 +3,6 @@
class CRemote
{
public:
- static void GivePlayerRemoteControlledCar(float, float, float, float);
+ static void GivePlayerRemoteControlledCar(float, float, float, float, uint16);
static void TakeRemoteControlledCarFromPlayer(void);
};
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index ae49094b..31684e3f 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -2550,7 +2550,7 @@ int8 CRunningScript::ProcessCommandsFrom200To299(int32 command)
CVector pos = *(CVector*)&ScriptParams[1];
if (pos.z <= -100.0f)
pos.z = CWorld::FindGroundZForCoord(pos.x, pos.y);
- CRemote::GivePlayerRemoteControlledCar(pos.x, pos.y, pos.z, DEGTORAD(*(float*)&ScriptParams[4]));
+ CRemote::GivePlayerRemoteControlledCar(pos.x, pos.y, pos.z, DEGTORAD(*(float*)&ScriptParams[4]), MI_RCBANDIT);
return 0;
}
case COMMAND_ALTER_WANTED_LEVEL: