summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2019-07-26 09:45:36 +0200
committerGitHub <noreply@github.com>2019-07-26 09:45:36 +0200
commitc63de7ec43977f6ed49cd4234b92cb9128f43d64 (patch)
tree4d1ba5b96fc2d1e938037e93b48e3e4aa03267d5 /src/control
parentMerge pull request #163 from Nick007J/master (diff)
parentfixed remote (diff)
downloadre3-c63de7ec43977f6ed49cd4234b92cb9128f43d64.tar
re3-c63de7ec43977f6ed49cd4234b92cb9128f43d64.tar.gz
re3-c63de7ec43977f6ed49cd4234b92cb9128f43d64.tar.bz2
re3-c63de7ec43977f6ed49cd4234b92cb9128f43d64.tar.lz
re3-c63de7ec43977f6ed49cd4234b92cb9128f43d64.tar.xz
re3-c63de7ec43977f6ed49cd4234b92cb9128f43d64.tar.zst
re3-c63de7ec43977f6ed49cd4234b92cb9128f43d64.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: