diff --git a/dgamexwrapper/src/ScriptThreadMaths.cpp b/dgamexwrapper/src/ScriptThreadMaths.cpp index ce698a6..0fba1c8 100644 --- a/dgamexwrapper/src/ScriptThreadMaths.cpp +++ b/dgamexwrapper/src/ScriptThreadMaths.cpp @@ -2,6 +2,7 @@ void ScriptThread::MathsInit() { +#ifdef MOHAA cerSet.AddEventResponse(new Event( "sin", EV_DEFAULT, @@ -21,7 +22,6 @@ void ScriptThread::MathsInit() EV_RETURN ), &ScriptThread::MCosEvent); - cerSet.AddEventResponse(new Event( "tan", EV_DEFAULT, @@ -33,34 +33,36 @@ void ScriptThread::MathsInit() &ScriptThread::MTanEvent); cerSet.AddEventResponse(new Event( - "asin", + "atan", EV_DEFAULT, "f", "x", - "Returns the arc sine of an angle of x radians.", + "Returns the arc tangent of an angle of x radians. Use atan2 instead.", EV_RETURN ), - &ScriptThread::MASinEvent); + &ScriptThread::MATanEvent); +#endif cerSet.AddEventResponse(new Event( - "acos", + "asin", EV_DEFAULT, "f", "x", - "Returns the arc cosine of an angle of x radians.", + "Returns the arc sine of an angle of x radians.", EV_RETURN ), - &ScriptThread::MACosEvent); + &ScriptThread::MASinEvent); cerSet.AddEventResponse(new Event( - "atan", + "acos", EV_DEFAULT, "f", "x", - "Returns the arc tangent of an angle of x radians. Use atan2 instead.", + "Returns the arc cosine of an angle of x radians.", EV_RETURN ), - &ScriptThread::MATanEvent); + &ScriptThread::MACosEvent); + cerSet.AddEventResponse(new Event( "atan2",