Merge branch 'acos' into 'next'

arccosine Lua exposure

See merge request STJr/SRB2!1455
This commit is contained in:
Monster Iestyn 2021-05-07 18:33:55 -04:00
commit 70052a099c

View file

@ -87,6 +87,12 @@ static int lib_finetangent(lua_State *L)
return 1;
}
static int lib_fixedacos(lua_State *L)
{
lua_pushangle(L, FixedAcos(luaL_checkfixed(L, 1)));
return 1;
}
// Fixed math
////////////////
@ -192,6 +198,7 @@ static luaL_Reg lib[] = {
{"sin", lib_finesine},
{"cos", lib_finecosine},
{"tan", lib_finetangent},
{"acos", lib_fixedacos},
{"FixedAngle", lib_fixedangle},
{"fixangle" , lib_fixedangle},
{"AngleFixed", lib_anglefixed},