summaryrefslogtreecommitdiff
path: root/src/sky.h
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2015-01-17 20:05:45 +0100
committerKahrl <kahrl@gmx.net>2015-01-18 13:16:01 +0100
commite80a044818714da480fe6f108f0439f67380fca6 (patch)
tree3fd92af0f03dcfcccb28bf958b15bca4366c6ee8 /src/sky.h
parent29514918f81e50e9a87659dd930f4e8369d73041 (diff)
downloadminetest-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.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sky.h b/src/sky.h
index 4af6be024..5023cc682 100644
--- a/src/sky.h
+++ b/src/sky.h
@@ -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();