summaryrefslogtreecommitdiffstats
path: root/src/control/Script4.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-01-18 21:58:26 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2021-01-18 21:58:26 +0100
commit47c697fecafbf5b9d2aa30c271a744e41568670f (patch)
treebe94d1bcc04a2e1981bfad703d64e27d71f5a4cc /src/control/Script4.cpp
parentMerge branch 'lcs' into lcs-dev (diff)
downloadre3-47c697fecafbf5b9d2aa30c271a744e41568670f.tar
re3-47c697fecafbf5b9d2aa30c271a744e41568670f.tar.gz
re3-47c697fecafbf5b9d2aa30c271a744e41568670f.tar.bz2
re3-47c697fecafbf5b9d2aa30c271a744e41568670f.tar.lz
re3-47c697fecafbf5b9d2aa30c271a744e41568670f.tar.xz
re3-47c697fecafbf5b9d2aa30c271a744e41568670f.tar.zst
re3-47c697fecafbf5b9d2aa30c271a744e41568670f.zip
Diffstat (limited to 'src/control/Script4.cpp')
-rw-r--r--src/control/Script4.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/Script4.cpp b/src/control/Script4.cpp
index 2fbe527c..20e041da 100644
--- a/src/control/Script4.cpp
+++ b/src/control/Script4.cpp
@@ -1495,7 +1495,7 @@ int8 CRunningScript::ProcessCommands900To999(int32 command)
CVehicle* pVehicle = CPools::GetVehiclePool()->GetAt(GET_INTEGER_PARAM(0));
script_assert(pVehicle);
const CVector& pos = pVehicle->GetPosition();
- float heading = CGeneral::GetATanOfXY(pos.y - GET_FLOAT_PARAM(2), pos.x - GET_FLOAT_PARAM(1)) + HALFPI;
+ float heading = CGeneral::GetATanOfXY(pos.x - GET_FLOAT_PARAM(1), pos.y - GET_FLOAT_PARAM(2)) + HALFPI;
if (heading > TWOPI)
heading -= TWOPI;
pVehicle->SetHeading(heading);