mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-26 12:13:43 +00:00
I hate GetATanOfXY
This commit is contained in:
parent
965a3d6eec
commit
a105003a7a
1 changed files with 1 additions and 1 deletions
|
@ -477,7 +477,7 @@ int8 CRunningScript::ProcessCommands800To899(int32 command)
|
|||
float fx = pObject->GetForward().x;
|
||||
float fy = pObject->GetForward().y;
|
||||
float heading = LimitAngleOnCircle(
|
||||
RADTODEG(CGeneral::GetATanOfXY(pObject->GetForward().x, pObject->GetForward().y)));
|
||||
RADTODEG(Atan2(-pObject->GetForward().x, pObject->GetForward().y)));
|
||||
float headingTarget = GET_FLOAT_PARAM(1);
|
||||
#ifdef FIX_BUGS
|
||||
float rotateBy = GET_FLOAT_PARAM(2) * CTimer::GetTimeStepFix();
|
||||
|
|
Loading…
Reference in a new issue