]> 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 f5b79b64f27cbf4f82c8532a177f8a77bb161538..f4a40bcd3ba3278ab89e45eefc9e34e07e6154db 100644 (file)
@@ -17,8 +17,7 @@ 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_bloated.h"
 class ClientEnvironment;
@@ -27,11 +26,10 @@ class ClientSimpleObject
 {
 protected:
 public:
-       bool m_to_be_removed;
+       bool m_to_be_removed = false;
+
+       ClientSimpleObject() = default;
+       virtual ~ClientSimpleObject() = default;
 
-       ClientSimpleObject() : m_to_be_removed(false) {}
-       virtual ~ClientSimpleObject() {}
        virtual void step(float dtime) {}
 };
-
-#endif