mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-11-06 02:45:54 +00:00
I hate GetATanOfXY
This commit is contained in:
parent
965a3d6eec
commit
a105003a7a
|
@ -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