diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-10-17 19:44:28 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-10-17 19:44:28 +0300 |
commit | 9a62a909bc9dd3ed7513b07d3d451769757b69f0 (patch) | |
tree | c9d8fdeb02e534e48281b5dc412c3b3a80e8d27d /src/environment.cpp | |
parent | 93f4d2b3f126412c057747ecf430a4ffba4f66a3 (diff) | |
download | minetest-9a62a909bc9dd3ed7513b07d3d451769757b69f0.tar.gz minetest-9a62a909bc9dd3ed7513b07d3d451769757b69f0.tar.bz2 minetest-9a62a909bc9dd3ed7513b07d3d451769757b69f0.zip |
Add a log message to SEnv and make it load objects if there are < 51 of them, to load blocks that were limited to 50
Diffstat (limited to 'src/environment.cpp')
-rw-r--r-- | src/environment.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/environment.cpp b/src/environment.cpp index 25e65d2be..16bdcf979 100644 --- a/src/environment.cpp +++ b/src/environment.cpp @@ -888,6 +888,16 @@ void ServerEnvironment::step(float dtime) continue; active_object_count_wider += block->m_static_objects.m_active.size(); + + if(block->m_static_objects.m_stored.size() != 0){ + errorstream<<"ServerEnvironment::step(): " + <<PP(block->getPos())<<" contains " + <<block->m_static_objects.m_stored.size() + <<" stored objects; " + <<"when spawning objects, when counting active " + <<"objects in wide area. relative position: " + <<"("<<x<<","<<y<<","<<z<<")"<<std::endl; + } } v3s16 p0; @@ -1507,7 +1517,7 @@ void ServerEnvironment::activateObjects(MapBlock *block) <<"activating objects of block "<<PP(block->getPos()) <<" ("<<block->m_static_objects.m_stored.size() <<" objects)"<<std::endl; - bool large_amount = (block->m_static_objects.m_stored.size() >= 50); + bool large_amount = (block->m_static_objects.m_stored.size() >= 51); if(large_amount){ errorstream<<"suspiciously large amount of objects detected: " <<block->m_static_objects.m_stored.size()<<" in " |