diff options
author | Craig Robbins <kde.psych@gmail.com> | 2015-04-01 23:01:28 +1000 |
---|---|---|
committer | Craig Robbins <kde.psych@gmail.com> | 2015-04-01 23:04:25 +1000 |
commit | 9527984dbcfc0a6cc7aa0470430cb6c3aa4103ba (patch) | |
tree | a06f321422fb501ea6c28571a9ac31bf7d09c43a /src/script/lua_api | |
parent | 113bdd3ec0608655d1ab36886b4708bb8ccb7870 (diff) | |
download | minetest-9527984dbcfc0a6cc7aa0470430cb6c3aa4103ba.tar.gz minetest-9527984dbcfc0a6cc7aa0470430cb6c3aa4103ba.tar.bz2 minetest-9527984dbcfc0a6cc7aa0470430cb6c3aa4103ba.zip |
Move globals from main.cpp to more sane locations
Move debug streams to log.cpp|h
Move GUI-related globals to clientlauncher
Move g_settings and g_settings_path to settings.cpp|h
Move g_menuclouds to clouds.cpp|h
Move g_profiler to profiler.cpp|h
Diffstat (limited to 'src/script/lua_api')
-rw-r--r-- | src/script/lua_api/l_internal.h | 1 | ||||
-rw-r--r-- | src/script/lua_api/l_mainmenu.cpp | 1 | ||||
-rw-r--r-- | src/script/lua_api/l_mapgen.cpp | 1 | ||||
-rw-r--r-- | src/script/lua_api/l_util.cpp | 1 |
4 files changed, 0 insertions, 4 deletions
diff --git a/src/script/lua_api/l_internal.h b/src/script/lua_api/l_internal.h index 5936ac046..e8a029b86 100644 --- a/src/script/lua_api/l_internal.h +++ b/src/script/lua_api/l_internal.h @@ -36,7 +36,6 @@ with this program; if not, write to the Free Software Foundation, Inc., #if (defined(WIN32) || defined(_WIN32_WCE)) #define NO_MAP_LOCK_REQUIRED #else -#include "main.h" #include "profiler.h" #define NO_MAP_LOCK_REQUIRED \ ScopeProfiler nolocktime(g_profiler,"Scriptapi: unlockable time",SPT_ADD) diff --git a/src/script/lua_api/l_mainmenu.cpp b/src/script/lua_api/l_mainmenu.cpp index 2ad6ba360..b068040db 100644 --- a/src/script/lua_api/l_mainmenu.cpp +++ b/src/script/lua_api/l_mainmenu.cpp @@ -34,7 +34,6 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "emerge.h" #include "sound.h" #include "settings.h" -#include "main.h" // for g_settings #include "log.h" #include "EDriverTypes.h" diff --git a/src/script/lua_api/l_mapgen.cpp b/src/script/lua_api/l_mapgen.cpp index ed0eaaaac..cbe3610c8 100644 --- a/src/script/lua_api/l_mapgen.cpp +++ b/src/script/lua_api/l_mapgen.cpp @@ -33,7 +33,6 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "mapgen_v5.h" #include "mapgen_v7.h" #include "settings.h" -#include "main.h" #include "log.h" diff --git a/src/script/lua_api/l_util.cpp b/src/script/lua_api/l_util.cpp index eb6c1835d..79a5b252a 100644 --- a/src/script/lua_api/l_util.cpp +++ b/src/script/lua_api/l_util.cpp @@ -30,7 +30,6 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "tool.h" #include "filesys.h" #include "settings.h" -#include "main.h" //required for g_settings, g_settings_path // debug(...) // Writes a line to dstream |