diff options
author | sfan5 <sfan5@live.de> | 2020-04-26 20:57:27 +0200 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2020-04-27 06:58:34 +0200 |
commit | 8a03097450441cc7589507509bf755082a027cc7 (patch) | |
tree | 158d3c9ec46da3b184556c6606004eb74d2fa286 /src/script/cpp_api | |
parent | d3f50f216f051186bcac34c7383829e1e7b929ff (diff) | |
download | minetest-8a03097450441cc7589507509bf755082a027cc7.tar.gz minetest-8a03097450441cc7589507509bf755082a027cc7.tar.bz2 minetest-8a03097450441cc7589507509bf755082a027cc7.zip |
script: Put getGuiEngine() inside a client-only #ifdef
Diffstat (limited to 'src/script/cpp_api')
-rw-r--r-- | src/script/cpp_api/s_base.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/script/cpp_api/s_base.h b/src/script/cpp_api/s_base.h index 697e5f556..86f7f7bac 100644 --- a/src/script/cpp_api/s_base.h +++ b/src/script/cpp_api/s_base.h @@ -136,8 +136,10 @@ protected: Environment* getEnv() { return m_environment; } void setEnv(Environment* env) { m_environment = env; } +#ifndef SERVER GUIEngine* getGuiEngine() { return m_guiengine; } void setGuiEngine(GUIEngine* guiengine) { m_guiengine = guiengine; } +#endif void objectrefGetOrCreate(lua_State *L, ServerActiveObject *cobj); @@ -158,6 +160,8 @@ private: IGameDef *m_gamedef = nullptr; Environment *m_environment = nullptr; +#ifndef SERVER GUIEngine *m_guiengine = nullptr; +#endif ScriptingType m_type; }; |