diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2021-01-18 21:59:07 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2021-01-18 21:59:54 +0100 |
commit | 8b80a8803b005565ddad1bac2cb6e35f398dc5ca (patch) | |
tree | 6e4d1b085f3589e0b100288268d71bcfdc2ee884 /src/control | |
parent | Merge remote-tracking branch 'upstream/miami' into miami (diff) | |
download | re3-8b80a8803b005565ddad1bac2cb6e35f398dc5ca.tar re3-8b80a8803b005565ddad1bac2cb6e35f398dc5ca.tar.gz re3-8b80a8803b005565ddad1bac2cb6e35f398dc5ca.tar.bz2 re3-8b80a8803b005565ddad1bac2cb6e35f398dc5ca.tar.lz re3-8b80a8803b005565ddad1bac2cb6e35f398dc5ca.tar.xz re3-8b80a8803b005565ddad1bac2cb6e35f398dc5ca.tar.zst re3-8b80a8803b005565ddad1bac2cb6e35f398dc5ca.zip |
Diffstat (limited to '')
-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 3c4860f7..51dc14d3 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(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); |