From: Perttu Ahola Date: Mon, 17 Oct 2011 16:44:28 +0000 (+0300) Subject: Add a log message to SEnv and make it load objects if there are < 51 of them, to... X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=9a62a909bc9dd3ed7513b07d3d451769757b69f0;p=zefram%2Fminetest%2Fminetest_engine.git 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 --- diff --git a/src/environment.cpp b/src/environment.cpp index 25e65d2b..16bdcf97 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(): " + <getPos())<<" contains " + <m_static_objects.m_stored.size() + <<" stored objects; " + <<"when spawning objects, when counting active " + <<"objects in wide area. relative position: " + <<"("<getPos()) <<" ("<m_static_objects.m_stored.size() <<" objects)"<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: " <m_static_objects.m_stored.size()<<" in "