fix
This commit is contained in:
parent
9df82ec0de
commit
15b11d52ad
@ -43,6 +43,7 @@ static int l_close_world(lua_State* L) {
|
|||||||
scripting::engine->setScreen(nullptr);
|
scripting::engine->setScreen(nullptr);
|
||||||
// create and go to menu screen
|
// create and go to menu screen
|
||||||
scripting::engine->setScreen(std::make_shared<MenuScreen>(scripting::engine));
|
scripting::engine->setScreen(std::make_shared<MenuScreen>(scripting::engine));
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int l_delete_world(lua_State* L) {
|
static int l_delete_world(lua_State* L) {
|
||||||
|
|||||||
@ -32,6 +32,7 @@ Level* scripting::level = nullptr;
|
|||||||
const Content* scripting::content = nullptr;
|
const Content* scripting::content = nullptr;
|
||||||
const ContentIndices* scripting::indices = nullptr;
|
const ContentIndices* scripting::indices = nullptr;
|
||||||
BlocksController* scripting::blocks = nullptr;
|
BlocksController* scripting::blocks = nullptr;
|
||||||
|
LevelController* scripting::controller = nullptr;
|
||||||
|
|
||||||
Environment::Environment(int env) : env(env) {
|
Environment::Environment(int env) : env(env) {
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user