mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-22 09:11:21 +00:00
acos Lua exposure
This commit is contained in:
parent
bcd3245b76
commit
4f3802a2cc
1 changed files with 7 additions and 0 deletions
|
@ -87,6 +87,12 @@ static int lib_finetangent(lua_State *L)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static int lib_finearccosine(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_finearccosine},
|
||||
{"FixedAngle", lib_fixedangle},
|
||||
{"fixangle" , lib_fixedangle},
|
||||
{"AngleFixed", lib_anglefixed},
|
||||
|
|
Loading…
Reference in a new issue