summaryrefslogtreecommitdiffstats
path: root/src/control/Script4.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-01-21 22:11:36 +0100
committerSergeanur <s.anureev@yandex.ua>2021-01-21 22:11:36 +0100
commite8db0e3abb52c465d842133c09ea320a820e3121 (patch)
treecf5a011373899891c6a191f024839a29d018d8fb /src/control/Script4.cpp
parentMore fonts (diff)
parentMerge remote-tracking branch 'origin/miami' into lcs (diff)
downloadre3-e8db0e3abb52c465d842133c09ea320a820e3121.tar
re3-e8db0e3abb52c465d842133c09ea320a820e3121.tar.gz
re3-e8db0e3abb52c465d842133c09ea320a820e3121.tar.bz2
re3-e8db0e3abb52c465d842133c09ea320a820e3121.tar.lz
re3-e8db0e3abb52c465d842133c09ea320a820e3121.tar.xz
re3-e8db0e3abb52c465d842133c09ea320a820e3121.tar.zst
re3-e8db0e3abb52c465d842133c09ea320a820e3121.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 12eb179c..8586b398 100644
--- a/src/control/Script4.cpp
+++ b/src/control/Script4.cpp
@@ -1493,7 +1493,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);