mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-29 23:55:40 +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 fx = pObject->GetForward().x;
|
||||||
float fy = pObject->GetForward().y;
|
float fy = pObject->GetForward().y;
|
||||||
float heading = LimitAngleOnCircle(
|
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);
|
float headingTarget = GET_FLOAT_PARAM(1);
|
||||||
#ifdef FIX_BUGS
|
#ifdef FIX_BUGS
|
||||||
float rotateBy = GET_FLOAT_PARAM(2) * CTimer::GetTimeStepFix();
|
float rotateBy = GET_FLOAT_PARAM(2) * CTimer::GetTimeStepFix();
|
||||||
|
|
Loading…
Reference in a new issue