mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-13 16:44:09 +00:00
heli AI fix
This commit is contained in:
parent
9ab3683148
commit
17dd26e1ca
2 changed files with 19 additions and 18 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue