summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-18 21:43:06 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-18 21:43:06 +0200
commit746f2aa47903d6aaeaa8046d8397458617460876 (patch)
tree81af2d58dd0f4a2cac5f800d1299a62acb7f8fc8 /src/control
parentMerge pull request #560 from GTAmodding/ShFil119-patch-1 (diff)
downloadre3-746f2aa47903d6aaeaa8046d8397458617460876.tar
re3-746f2aa47903d6aaeaa8046d8397458617460876.tar.gz
re3-746f2aa47903d6aaeaa8046d8397458617460876.tar.bz2
re3-746f2aa47903d6aaeaa8046d8397458617460876.tar.lz
re3-746f2aa47903d6aaeaa8046d8397458617460876.tar.xz
re3-746f2aa47903d6aaeaa8046d8397458617460876.tar.zst
re3-746f2aa47903d6aaeaa8046d8397458617460876.zip
Diffstat (limited to 'src/control')
-rw-r--r--src/control/Script.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index 357436c6..844b1858 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -6862,7 +6862,11 @@ int8 CRunningScript::ProcessCommands800To899(int32 command)
float heading = LimitAngleOnCircle(
RADTODEG(Atan2(-pObject->GetForward().x, pObject->GetForward().y)));
float headingTarget = *(float*)&ScriptParams[1];
+#ifdef FIX_BUGS
+ float rotateBy = *(float*)&ScriptParams[2] * CTimer::GetTimeStepFix();
+#else
float rotateBy = *(float*)&ScriptParams[2];
+#endif
if (headingTarget == heading) { // using direct comparasion here is fine
UpdateCompareFlag(true);
return 0;
@@ -6911,7 +6915,11 @@ int8 CRunningScript::ProcessCommands800To899(int32 command)
assert(pObject);
CVector pos = pObject->GetPosition();
CVector posTarget = *(CVector*)&ScriptParams[1];
+#ifdef FIX_BUGS
+ CVector slideBy = *(CVector*)&ScriptParams[4] * CTimer::GetTimeStepFix();
+#else
CVector slideBy = *(CVector*)&ScriptParams[4];
+#endif
if (posTarget == pos) { // using direct comparasion here is fine
UpdateCompareFlag(true);
return 0;