diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-11-13 12:54:33 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-11-29 19:13:41 +0200 |
commit | 3b77a63d5dbfff0ae5ca8eb04a001904f7f568b2 (patch) | |
tree | c89430a5746c4eaf1177afd0f948595de87437e7 /src/environment.cpp | |
parent | 64fa59e24f7b3e046b7dfeba930e44c86e32668e (diff) | |
download | minetest-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/environment.cpp')
-rw-r--r-- | src/environment.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/environment.cpp b/src/environment.cpp index 50c5a4b81..d9f24ede9 100644 --- a/src/environment.cpp +++ b/src/environment.cpp @@ -31,6 +31,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "profiler.h" #include "scriptapi.h" #include "mapnode_contentfeatures.h" +#include "nodemetadata.h" #define PP(x) "("<<(x).X<<","<<(x).Y<<","<<(x).Z<<")" @@ -607,7 +608,7 @@ void ServerEnvironment::activateBlock(MapBlock *block, u32 additional_dtime) activateObjects(block); // Run node metadata - bool changed = block->m_node_metadata.step((float)dtime_s); + bool changed = block->m_node_metadata->step((float)dtime_s); if(changed) { MapEditEvent event; @@ -917,7 +918,7 @@ void ServerEnvironment::step(float dtime) block->setTimestampNoChangedFlag(m_game_time); // Run node metadata - bool changed = block->m_node_metadata.step(dtime); + bool changed = block->m_node_metadata->step(dtime); if(changed) { MapEditEvent event; |