]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/clientsimpleobject.h
Send only changed node metadata to clients instead of whole mapblock (#5268)
[dragonfireclient.git] / src / clientsimpleobject.h
index 21e42b4cbed88f4a16da0bbb3d25fb22c575f84f..f4a40bcd3ba3278ab89e45eefc9e34e07e6154db 100644 (file)
@@ -1,6 +1,6 @@
 /*
-Minetest-c55
-Copyright (C) 2012 celeron55, Perttu Ahola <celeron55@gmail.com>
+Minetest
+Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>
 
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU Lesser General Public License as published by
@@ -17,22 +17,19 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
-#ifndef CLIENTSIMPLEOBJECT_HEADER
-#define CLIENTSIMPLEOBJECT_HEADER
+#pragma once
 
-#include "irrlichttypes.h"
+#include "irrlichttypes_bloated.h"
 class ClientEnvironment;
 
 class ClientSimpleObject
 {
 protected:
 public:
-       bool m_to_be_removed;
+       bool m_to_be_removed = false;
 
-       ClientSimpleObject(): m_to_be_removed(false) {}
-       virtual ~ClientSimpleObject(){}
-       virtual void step(float dtime){}
-};
-
-#endif
+       ClientSimpleObject() = default;
+       virtual ~ClientSimpleObject() = default;
 
+       virtual void step(float dtime) {}
+};