clientobject.h: Fix code-style

master
ANAND 2019-08-16 22:37:49 +05:30 committed by SmallJoker
parent 9543b84970
commit 96762af3ce
1 changed files with 16 additions and 17 deletions

View File

@ -39,7 +39,7 @@ public:
ClientActiveObject(u16 id, Client *client, ClientEnvironment *env);
virtual ~ClientActiveObject();
virtual void addToScene(ITextureSource *tsrc) {};
virtual void addToScene(ITextureSource *tsrc) {}
virtual void removeFromScene(bool permanent) {}
// 0 <= light_at_pos <= LIGHT_SUN
virtual void updateLight(u8 light_at_pos) {}
@ -80,9 +80,8 @@ public:
ClientEnvironment *env);
// If returns true, punch will not be sent to the server
virtual bool directReportPunch(v3f dir, const ItemStack *punchitem=NULL,
float time_from_last_punch=1000000)
{ return false; }
virtual bool directReportPunch(v3f dir, const ItemStack *punchitem = nullptr,
float time_from_last_punch = 1000000) { return false; }
protected:
// Used for creating objects based on type