]> git.lizzy.rs Git - minetest.git/blobdiff - src/clientobject.h
Make ClientInterface::statenames consistent with the state enum again
[minetest.git] / src / clientobject.h
index 24150628eaa20ca6274469e0b3e24d972b5b9c36..be24e1388681e4776c9f537481457e5522124e7d 100644 (file)
@@ -54,6 +54,7 @@ class ClientActiveObject : public ActiveObject
        virtual void removeFromScene(bool permanent){}
        // 0 <= light_at_pos <= LIGHT_SUN
        virtual void updateLight(u8 light_at_pos){}
+       virtual void updateLightNoCheck(u8 light_at_pos){}
        virtual v3s16 getLightPosition(){return v3s16(0,0,0);}
        virtual core::aabbox3d<f32>* getSelectionBox(){return NULL;}
        virtual bool getCollisionBox(aabb3f *toset){return false;}
@@ -86,7 +87,7 @@ class ClientActiveObject : public ActiveObject
        virtual void initialize(const std::string &data){}
 
        // Create a certain type of ClientActiveObject
-       static ClientActiveObject* create(u8 type, IGameDef *gamedef,
+       static ClientActiveObject* create(ActiveObjectType type, IGameDef *gamedef,
                        ClientEnvironment *env);
 
        // If returns true, punch will not be sent to the server