diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-06-12 21:38:37 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-06-12 21:38:37 +0200 |
commit | 17dd26e1cad71f50a909967a756369d8c7e7904c (patch) | |
tree | 074b3f4e3522de6760b38837a28f7767e622608e /src/vehicles | |
parent | Merge pull request #626 from majesticCoding/miami (diff) | |
download | re3-17dd26e1cad71f50a909967a756369d8c7e7904c.tar re3-17dd26e1cad71f50a909967a756369d8c7e7904c.tar.gz re3-17dd26e1cad71f50a909967a756369d8c7e7904c.tar.bz2 re3-17dd26e1cad71f50a909967a756369d8c7e7904c.tar.lz re3-17dd26e1cad71f50a909967a756369d8c7e7904c.tar.xz re3-17dd26e1cad71f50a909967a756369d8c7e7904c.tar.zst re3-17dd26e1cad71f50a909967a756369d8c7e7904c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/vehicles/Automobile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicles/Automobile.cpp b/src/vehicles/Automobile.cpp index 71192d47..fcf85685 100644 --- a/src/vehicles/Automobile.cpp +++ b/src/vehicles/Automobile.cpp @@ -5566,7 +5566,7 @@ CAutomobile::TellHeliToGoToCoors(float x, float y, float z, uint8 speed) SetStatus(STATUS_PHYSICS); if(m_fOrientation == 0.0f){ - m_fOrientation = CGeneral::GetATanOfXY(GetForward().x, GetForward().y) + TWOPI; + m_fOrientation = CGeneral::GetATanOfXY(GetForward().x, GetForward().y) + PI; while(m_fOrientation > TWOPI) m_fOrientation -= TWOPI; } } |