Fixed bug with floatatan() returning wrong values when trying to get angle in degrees or grades
This commit is contained in:
parent
388711e969
commit
baf406cb6a
|
@ -368,7 +368,6 @@ static cell AMX_NATIVE_CALL n_floatatan(AMX *amx, cell *params)
|
|||
* params[2] = radix
|
||||
*/
|
||||
REAL fA = amx_ctof(params[1]);
|
||||
fA = ToRadians(fA, params[2]);
|
||||
fA = atan(fA);
|
||||
fA = FromRadians(fA, params[2]);
|
||||
return amx_ftoc(fA);
|
||||
|
|
Loading…
Reference in New Issue
Block a user