summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-01-18 21:59:07 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2021-01-18 21:59:07 +0100
commit8c1f4ba65d1a037fa442f489f5d542eed42edcab (patch)
treecde437d37d44adbc749bfeaf80b1f85dd4287316 /src
parentFix typo (diff)
downloadre3-8c1f4ba65d1a037fa442f489f5d542eed42edcab.tar
re3-8c1f4ba65d1a037fa442f489f5d542eed42edcab.tar.gz
re3-8c1f4ba65d1a037fa442f489f5d542eed42edcab.tar.bz2
re3-8c1f4ba65d1a037fa442f489f5d542eed42edcab.tar.lz
re3-8c1f4ba65d1a037fa442f489f5d542eed42edcab.tar.xz
re3-8c1f4ba65d1a037fa442f489f5d542eed42edcab.tar.zst
re3-8c1f4ba65d1a037fa442f489f5d542eed42edcab.zip
Diffstat (limited to 'src')
-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 d17334a9..ecbb337a 100644
--- a/src/control/Script4.cpp
+++ b/src/control/Script4.cpp
@@ -1417,7 +1417,7 @@ int8 CRunningScript::ProcessCommands900To999(int32 command)
CVehicle* pVehicle = CPools::GetVehiclePool()->GetAt(ScriptParams[0]);
script_assert(pVehicle);
const CVector& pos = pVehicle->GetPosition();
- float heading = CGeneral::GetATanOfXY(pos.y - *(float*)&ScriptParams[2], pos.x - *(float*)&ScriptParams[1]) + HALFPI;
+ float heading = CGeneral::GetATanOfXY(pos.x - *(float*)&ScriptParams[1], pos.y - *(float*)&ScriptParams[2]) + HALFPI;
if (heading > TWOPI)
heading -= TWOPI;
pVehicle->SetHeading(heading);