diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2021-01-23 10:54:08 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2021-01-23 10:54:08 +0100 |
commit | a105003a7a7136dc37b3acd808f168a980716efe (patch) | |
tree | 5efaaa2cf5d57d5deaf90fba41e7682ef72bd785 /src | |
parent | Merge remote-tracking branch 'upstream/lcs' into lcs (diff) | |
download | re3-a105003a7a7136dc37b3acd808f168a980716efe.tar re3-a105003a7a7136dc37b3acd808f168a980716efe.tar.gz re3-a105003a7a7136dc37b3acd808f168a980716efe.tar.bz2 re3-a105003a7a7136dc37b3acd808f168a980716efe.tar.lz re3-a105003a7a7136dc37b3acd808f168a980716efe.tar.xz re3-a105003a7a7136dc37b3acd808f168a980716efe.tar.zst re3-a105003a7a7136dc37b3acd808f168a980716efe.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/control/Script4.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/Script4.cpp b/src/control/Script4.cpp index 20e041da..c3eb2e89 100644 --- a/src/control/Script4.cpp +++ b/src/control/Script4.cpp @@ -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(); |