Skip to content

Commit

Permalink
AGS: Fix flipped parameters in ArcTan2 plugin function
Browse files Browse the repository at this point in the history
  • Loading branch information
tag2015 committed Oct 30, 2024
1 parent 42ac9ca commit 0c6e0d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/ags/plugins/core/maths.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void Maths::ArcTan(ScriptMethodParams &params) {

void Maths::ArcTan2(ScriptMethodParams &params) {
PARAMS2(float, yval, float, xval);
params._result = AGS3::Math_ArcTan2(xval, yval);
params._result = AGS3::Math_ArcTan2(yval, xval);
}

void Maths::Cos(ScriptMethodParams &params) {
Expand Down

0 comments on commit 0c6e0d4

Please sign in to comment.