[server] Implement and match n_atan(...)

This commit is contained in:
RD42 committed 2024-04-27 18:34:03 +08:00
1 parent b612f60138
commit cfb5743246
1 file changed
+8 -5
+8 -5
View File
@@ -163,6 +163,13 @@ static cell AMX_NATIVE_CALL n_acos(AMX *amx, cell *params)
return amx_ftoc(fResult);
}
static cell AMX_NATIVE_CALL n_atan(AMX *amx, cell *params)
{
CHECK_PARAMS(1);
float fResult = (float)(atan(amx_ctof(params[1])) * (180.0f / PI));
return amx_ftoc(fResult);
}
static cell AMX_NATIVE_CALL n_atan2(AMX *amx, cell *params)
{
CHECK_PARAMS(2);
@@ -170,11 +177,7 @@ static cell AMX_NATIVE_CALL n_atan2(AMX *amx, cell *params)
return amx_ftoc(fResult);
}
static cell AMX_NATIVE_CALL n_atan(AMX *amx, cell *params)
{
// TODO: atan
return 0;
}
//----------------------------------------------------
static cell AMX_NATIVE_CALL n_SHA256_PassHash(AMX *amx, cell *params)
{