diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-01-21 22:11:36 +0100 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-01-21 22:11:36 +0100 |
commit | e8db0e3abb52c465d842133c09ea320a820e3121 (patch) | |
tree | cf5a011373899891c6a191f024839a29d018d8fb /src/control/Script4.cpp | |
parent | More fonts (diff) | |
parent | Merge remote-tracking branch 'origin/miami' into lcs (diff) | |
download | re3-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.cpp | 2 |
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); |