Noise: Prevent unittest crash caused by division by zero
[oweals/minetest.git] / src / content_cao.h
index e353b71de510eacece4dc40c0b51f197fabe2d10..d6d5deac8fe5884599d8062d8409306210324f8c 100644 (file)
@@ -65,7 +65,6 @@ private:
        ObjectProperties m_prop;
        //
        scene::ISceneManager *m_smgr = nullptr;
-       IrrlichtDevice *m_irr = nullptr;
        Client *m_client = nullptr;
        aabb3f m_selection_box = aabb3f(-BS/3.,-BS/3.,-BS/3., BS/3.,BS/3.,BS/3.);
        scene::IMeshSceneNode *m_meshnode = nullptr;
@@ -130,13 +129,13 @@ public:
 
        void processInitData(const std::string &data);
 
-       ClientActiveObject *getParent();
+       ClientActiveObject *getParent() const;
 
        bool getCollisionBox(aabb3f *toset) const;
 
        bool collideWithObjects() const;
 
-       aabb3f *getSelectionBox();
+       virtual bool getSelectionBox(aabb3f *toset) const;
 
        v3f getPosition();
        inline float getYaw() const
@@ -169,8 +168,7 @@ public:
 
        void removeFromScene(bool permanent);
 
-       void addToScene(scene::ISceneManager *smgr, ITextureSource *tsrc,
-                       IrrlichtDevice *irr);
+       void addToScene(ITextureSource *tsrc);
 
        inline void expireVisuals()
        {