From 37b7f094e3ea502339794f64e8bad22444c6fb54 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sun, 6 Jul 2014 13:07:23 +0200 Subject: Fix warnings reported by clang --- src/clientobject.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/clientobject.h') diff --git a/src/clientobject.h b/src/clientobject.h index 233617b5c..cae551abc 100644 --- a/src/clientobject.h +++ b/src/clientobject.h @@ -61,27 +61,27 @@ public: virtual scene::IMeshSceneNode *getMeshSceneNode(){return NULL;} virtual scene::IAnimatedMeshSceneNode *getAnimatedMeshSceneNode(){return NULL;} virtual scene::IBillboardSceneNode *getSpriteSceneNode(){return NULL;} - virtual bool isPlayer(){return false;} - virtual bool isLocalPlayer(){return false;} + virtual bool isPlayer() const {return false;} + virtual bool isLocalPlayer() const {return false;} virtual void setAttachments(){} virtual bool doShowSelectionBox(){return true;} virtual void updateCameraOffset(v3s16 camera_offset){}; - + // Step object in time virtual void step(float dtime, ClientEnvironment *env){} - + // Process a message sent by the server side object virtual void processMessage(const std::string &data){} virtual std::string infoText() {return "";} virtual std::string debugInfoText() {return "";} - + /* This takes the return value of ServerActiveObject::getClientInitializationData */ virtual void initialize(const std::string &data){} - + // Create a certain type of ClientActiveObject static ClientActiveObject* create(u8 type, IGameDef *gamedef, ClientEnvironment *env); @@ -120,4 +120,3 @@ struct DistanceSortedActiveObject }; #endif - -- cgit v1.2.3