diff options
author | Kahrl <kahrl@gmx.net> | 2015-01-17 20:05:45 +0100 |
---|---|---|
committer | Kahrl <kahrl@gmx.net> | 2015-01-18 13:16:01 +0100 |
commit | e80a044818714da480fe6f108f0439f67380fca6 (patch) | |
tree | 3fd92af0f03dcfcccb28bf958b15bca4366c6ee8 /src/sky.h | |
parent | 29514918f81e50e9a87659dd930f4e8369d73041 (diff) | |
download | minetest-e80a044818714da480fe6f108f0439f67380fca6.tar.gz minetest-e80a044818714da480fe6f108f0439f67380fca6.tar.bz2 minetest-e80a044818714da480fe6f108f0439f67380fca6.zip |
Fix use of uninit data in Sky and (potentially) GUIChatConsole constructors
Clean up nearby code a bit
As a small side effect, it is now possible to add a background texture
to the chat console by simply providing background_chat.jpg, it is no
longer necessary to also add "console_color =" to minetest.conf.
Diffstat (limited to 'src/sky.h')
-rw-r--r-- | src/sky.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -27,12 +27,15 @@ with this program; if not, write to the Free Software Foundation, Inc., #define SKY_MATERIAL_COUNT 5 #define SKY_STAR_COUNT 200 +class ITextureSource; + // Skybox, rendered with zbuffer turned off, before all other nodes. class Sky : public scene::ISceneNode { public: //! constructor - Sky(scene::ISceneNode* parent, scene::ISceneManager* mgr, s32 id); + Sky(scene::ISceneNode* parent, scene::ISceneManager* mgr, s32 id, + ITextureSource *tsrc); virtual void OnRegisterSceneNode(); |