Fixed bug with floatatan() returning wrong values when trying to get angle in degrees or grades

This commit is contained in:
Scott Ehlert 2006-08-28 17:37:15 +00:00
parent 388711e969
commit baf406cb6a

View File

@ -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);