mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
More fixes from malex
This commit is contained in:
parent
90b7dc2b9c
commit
e979252742
@ -385,7 +385,6 @@ static cell AMX_NATIVE_CALL n_floatacos(AMX *amx, cell *params)
|
||||
* params[2] = radix
|
||||
*/
|
||||
REAL fA = amx_ctof(params[1]);
|
||||
fA = ToRadians(fA, params[2]);
|
||||
fA = acos(fA);
|
||||
fA = FromRadians(fA, params[2]);
|
||||
return amx_ftoc(fA);
|
||||
@ -402,7 +401,6 @@ static cell AMX_NATIVE_CALL n_floatasin(AMX *amx, cell *params)
|
||||
* params[2] = radix
|
||||
*/
|
||||
REAL fA = amx_ctof(params[1]);
|
||||
fA = ToRadians(fA, params[2]);
|
||||
fA = asin(fA);
|
||||
fA = FromRadians(fA, params[2]);
|
||||
return amx_ftoc(fA);
|
||||
@ -423,7 +421,7 @@ static cell AMX_NATIVE_CALL n_floatatan2(AMX *amx, cell *params)
|
||||
REAL fB = amx_ctof(params[2]);
|
||||
REAL fC;
|
||||
fC = atan2(fA, fB);
|
||||
fC = FromRadians(fA, params[3]);
|
||||
fC = FromRadians(fC, params[3]);
|
||||
return amx_ftoc(fC);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user