From 0bf533f7534e84a23b5b9c8a5ca45e67c1cc3f00 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 16 Oct 2011 16:28:12 +0300 Subject: [PATCH] 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 --- src/content_nodemeta.cpp | 13 +++++++------ src/nodemetadata.cpp | 9 +++++---- src/server.cpp | 1 + 3 files changed, 13 insertions(+), 10 deletions(-) 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 -- 2.25.1