C++11 patchset 9: move hardcoded init parameters to class definitions (part 1) (...
[oweals/minetest.git] / src / clouds.h
index a0bda28df901677355b00a521e64da7b2226bf9c..869f7f7fc8b2980fe447b9bad99b965567d46a6c 100644 (file)
@@ -53,7 +53,7 @@ public:
        virtual void OnRegisterSceneNode();
 
        virtual void render();
-       
+
        virtual const aabb3f &getBoundingBox() const
        {
                return m_box;
@@ -68,7 +68,7 @@ public:
        {
                return m_material;
        }
-       
+
        /*
                Other stuff
        */
@@ -76,7 +76,7 @@ public:
        void step(float dtime);
 
        void update(v2f camera_p, video::SColorf color);
-       
+
        void updateCameraOffset(v3s16 camera_offset)
        {
                m_camera_offset = camera_offset;
@@ -135,9 +135,8 @@ private:
        u32 m_seed;
        v2f m_camera_pos;
        v2f m_origin;
-       v2f m_speed;
        v3s16 m_camera_offset;
-       video::SColorf m_color;
+       video::SColorf m_color = video::SColorf(1.0f, 1.0f, 1.0f, 1.0f);
        CloudParams m_params;
 
 };