1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

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.
This commit is contained in:
Kahrl 2015-01-17 20:05:45 +01:00
parent 29514918f8
commit e80a044818
4 changed files with 25 additions and 25 deletions

View file

@ -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();