aboutsummaryrefslogtreecommitdiff
path: root/src/mapblock.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-11-13 12:54:33 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-11-29 19:13:41 +0200
commit3b77a63d5dbfff0ae5ca8eb04a001904f7f568b2 (patch)
treec89430a5746c4eaf1177afd0f948595de87437e7 /src/mapblock.h
parent64fa59e24f7b3e046b7dfeba930e44c86e32668e (diff)
downloadminetest-3b77a63d5dbfff0ae5ca8eb04a001904f7f568b2.tar.gz
minetest-3b77a63d5dbfff0ae5ca8eb04a001904f7f568b2.tar.bz2
minetest-3b77a63d5dbfff0ae5ca8eb04a001904f7f568b2.zip
Allocate MapBlock::m_node_metadata on heap to allow less header bloat
Diffstat (limited to 'src/mapblock.h')
-rw-r--r--src/mapblock.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mapblock.h b/src/mapblock.h
index 22b3b7db6..18b679cfc 100644
--- a/src/mapblock.h
+++ b/src/mapblock.h
@@ -30,7 +30,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "serialization.h"
#include "constants.h"
#include "voxel.h"
-#include "nodemetadata.h"
#include "staticobject.h"
#include "mapblock_nodemod.h"
#ifndef SERVER
@@ -38,6 +37,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#endif
class Map;
+class NodeMetadataList;
#define BLOCK_TIMESTAMP_UNDEFINED 0xffffffff
@@ -575,7 +575,7 @@ public:
JMutex mesh_mutex;
#endif
- NodeMetadataList m_node_metadata;
+ NodeMetadataList *m_node_metadata;
StaticObjectList m_static_objects;
private: