aboutsummaryrefslogtreecommitdiff
path: root/src/lua/core/luaopen_core.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/core/luaopen_core.cpp')
-rw-r--r--src/lua/core/luaopen_core.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lua/core/luaopen_core.cpp b/src/lua/core/luaopen_core.cpp
index 0e79ff5..d20a3bc 100644
--- a/src/lua/core/luaopen_core.cpp
+++ b/src/lua/core/luaopen_core.cpp
@@ -15,22 +15,22 @@ namespace lua
return 1;
}
- static int l_quit(lua_State* L)
+ static int l_stop(lua_State* L)
{
- Game::get()->quit();
+ Game::get()->stop();
return 0;
}
- static int l_exit(lua_State* L)
+ static int l_quit(lua_State* L)
{
- Game::get()->exit();
+ Game::get()->quit();
return 0;
}
-
+
static const luaL_Reg f[] = {
{"running", l_running},
- {"quit", l_quit}, // for end game loop
- {"exit", l_exit}, // for exit whole game
+ {"stop", l_stop}, // for end game loop
+ {"quit", l_quit}, // for exit whole game
{0, 0}
};