1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Allocate MapBlock::m_node_metadata on heap to allow less header bloat

This commit is contained in:
Perttu Ahola 2011-11-13 12:54:33 +02:00
parent 64fa59e24f
commit 3b77a63d5d
6 changed files with 19 additions and 14 deletions

View file

@ -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: