]> 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 9dd8cc472e3b59c2281cb903d547f25706d17982..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,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,12 +26,10 @@ 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) {}
+};