refactor: LuaState replaced with lua_engine

This commit is contained in:
MihailRis
2024-06-11 13:18:30 +03:00
parent 0647bc6f90
commit 90bc86408b
22 changed files with 643 additions and 675 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ static int l_player_set_rot(lua_State* L) {
lua_Number x = lua::tonumber(L, 2);
lua_Number y = lua::tonumber(L, 3);
lua_Number z = cam.z;
if (lua_isnumber(L, 4)) {
if (lua::isnumber(L, 4)) {
z = lua::tonumber(L, 4);
}
cam.x = x;