From e80a044818714da480fe6f108f0439f67380fca6 Mon Sep 17 00:00:00 2001 From: Kahrl Date: Sat, 17 Jan 2015 20:05:45 +0100 Subject: 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. --- src/sky.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/sky.h') 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(); -- cgit v1.2.3