1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fix isNan on setYaw Lua call (#7380)

* Fix isNan on setYaw Lua call
This commit is contained in:
Loïc Blot 2018-05-31 22:52:08 +02:00 committed by GitHub
parent df991edaa8
commit 162ffd7fba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 30 additions and 1 deletions

View file

@ -240,6 +240,15 @@ int ModApiUtil::l_is_yes(lua_State *L)
return 1;
}
// is_nan(arg)
int ModApiUtil::l_is_nan(lua_State *L)
{
NO_MAP_LOCK_REQUIRED;
lua_pushboolean(L, isNaN(L, 1));
return 1;
}
// get_builtin_path()
int ModApiUtil::l_get_builtin_path(lua_State *L)
{
@ -481,6 +490,7 @@ void ModApiUtil::Initialize(lua_State *L, int top)
API_FCT(get_password_hash);
API_FCT(is_yes);
API_FCT(is_nan);
API_FCT(get_builtin_path);
@ -513,6 +523,7 @@ void ModApiUtil::InitializeClient(lua_State *L, int top)
API_FCT(write_json);
API_FCT(is_yes);
API_FCT(is_nan);
API_FCT(compress);
API_FCT(decompress);