From: Perttu Ahola Date: Sun, 16 Oct 2011 13:28:12 +0000 (+0300) Subject: Switch more stuff to use the logging thing and fix segfault on player leave from... X-Git-Tag: 0.3.dev-20111021~46 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0bf533f7534e84a23b5b9c8a5ca45e67c1cc3f00;p=oweals%2Fminetest.git Switch more stuff to use the logging thing and fix segfault on player leave from server as introduced in a previous switch-to-logging commit --- diff --git a/src/content_nodemeta.cpp b/src/content_nodemeta.cpp index e79ff6d54..e6138a401 100644 --- a/src/content_nodemeta.cpp +++ b/src/content_nodemeta.cpp @@ -20,6 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "content_nodemeta.h" #include "inventory.h" #include "content_mapnode.h" +#include "log.h" /* SignNodeMetadata @@ -287,12 +288,12 @@ bool FurnaceNodeMetadata::nodeRemovalDisabled() } void FurnaceNodeMetadata::inventoryModified() { - dstream<<"Furnace inventory modification callback"< 60.0) - dstream<<"Furnace stepping a long time ("<= m_src_totaltime && m_src_totaltime > 0.001 @@ -369,7 +370,7 @@ bool FurnaceNodeMetadata::step(float dtime) break; } - //dstream<<"Furnace is out of fuel"<getList("fuel"); assert(fuel_list); @@ -454,7 +455,7 @@ bool FurnaceNodeMetadata::step(float dtime) } else { - //dstream<<"No fuel found"< #include "content_mapnode.h" +#include "log.h" /* NodeMetadata @@ -55,7 +56,7 @@ NodeMetadata* NodeMetadata::deSerialize(std::istream &is) if(n == NULL) { // If factory is not found, just return. - dstream<<"WARNING: NodeMetadata: No factory for typeId=" + infostream<<"WARNING: NodeMetadata: No factory for typeId=" < 1) { - dstream<<__FUNCTION_NAME<<": version "<::Iterator