From 17dd26e1cad71f50a909967a756369d8c7e7904c Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Fri, 12 Jun 2020 22:38:37 +0300 Subject: heli AI fix --- src/vehicles/Automobile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vehicles/Automobile.cpp') 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; } } -- cgit v1.2.3