summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-12-28 12:59:03 +0100
committerSergeanur <s.anureev@yandex.ua>2020-12-28 13:00:44 +0100
commit9c2f1b0833ec28ea52162d55560fca8f89341335 (patch)
tree60e6697b55db342c156dedc26ef918249b65bdcb /src/control
parentAdd bike leftovers (diff)
downloadre3-9c2f1b0833ec28ea52162d55560fca8f89341335.tar
re3-9c2f1b0833ec28ea52162d55560fca8f89341335.tar.gz
re3-9c2f1b0833ec28ea52162d55560fca8f89341335.tar.bz2
re3-9c2f1b0833ec28ea52162d55560fca8f89341335.tar.lz
re3-9c2f1b0833ec28ea52162d55560fca8f89341335.tar.xz
re3-9c2f1b0833ec28ea52162d55560fca8f89341335.tar.zst
re3-9c2f1b0833ec28ea52162d55560fca8f89341335.zip
Diffstat (limited to '')
-rw-r--r--src/control/Script6.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/Script6.cpp b/src/control/Script6.cpp
index c2937e1d..77dae53a 100644
--- a/src/control/Script6.cpp
+++ b/src/control/Script6.cpp
@@ -3,6 +3,7 @@
#include "Script.h"
#include "ScriptCommands.h"
+#include "Bike.h"
#include "CarCtrl.h"
#include "Cranes.h"
#include "Credits.h"
@@ -415,8 +416,7 @@ int8 CRunningScript::ProcessCommands1000To1099(int32 command)
((CAutomobile*)pVehicle)->m_fTraction = fTraction;
else
// this is certainly not a boat, trane, heli or plane field
- //((CBike*)pVehicle)->m_fTraction = fTraction;
- *(float*)(((char*)pVehicle) + 1088) = fTraction;
+ ((CBike*)pVehicle)->m_fTraction = fTraction;
return 0;
}
case COMMAND_ARE_MEASUREMENTS_IN_METRES: