v2d & aabbox3d<f32> & sky cleanups
[oweals/minetest.git] / src / sky.h
index 5023cc68264581fac36cb021abfc93fe4b1afd12..f1989177351a7c9420459353b5165851ac1e9789 100644 (file)
--- a/src/sky.h
+++ b/src/sky.h
@@ -42,7 +42,8 @@ public:
        //! renders the node.
        virtual void render();
 
-       virtual const core::aabbox3d<f32>& getBoundingBox() const;
+       virtual const aabb3f &getBoundingBox() const
+       { return m_box; }
 
        // Used by Irrlicht for optimizing rendering
        virtual video::SMaterial& getMaterial(u32 i)
@@ -74,7 +75,7 @@ public:
        }
 
 private:
-       core::aabbox3d<f32> Box;
+       aabb3f m_box;
        video::SMaterial m_materials[SKY_MATERIAL_COUNT];
 
        // How much sun & moon transition should affect horizon color