summaryrefslogtreecommitdiff
path: root/src/mapblock.cpp
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2015-10-14 01:26:03 -0400
committerkwolekr <kwolekr@minetest.net>2015-10-14 01:36:48 -0400
commit96cc5b34fe0151d2a1498eaaafb205757db346c4 (patch)
treee612a2d78086427cc5f555b82c597dcf9dd13b74 /src/mapblock.cpp
parent2139d7d45fb1a8ed250ad96c9975c581f02f72a9 (diff)
downloadminetest-96cc5b34fe0151d2a1498eaaafb205757db346c4.tar.gz
minetest-96cc5b34fe0151d2a1498eaaafb205757db346c4.tar.bz2
minetest-96cc5b34fe0151d2a1498eaaafb205757db346c4.zip
Use warningstream for log messages with WARNING
Remove DTIME macro and its uses, too
Diffstat (limited to 'src/mapblock.cpp')
-rw-r--r--src/mapblock.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mapblock.cpp b/src/mapblock.cpp
index 942457407..be16c3bb7 100644
--- a/src/mapblock.cpp
+++ b/src/mapblock.cpp
@@ -707,7 +707,7 @@ void MapBlock::deSerialize(std::istream &is, u8 version, bool disk)
&m_node_metadata, &m_node_timers,
m_gamedef->idef());
} catch(SerializationError &e) {
- errorstream<<"WARNING: MapBlock::deSerialize(): Ignoring an error"
+ warningstream<<"MapBlock::deSerialize(): Ignoring an error"
<<" while deserializing node metadata at ("
<<PP(getPos())<<": "<<e.what()<<std::endl;
}
@@ -770,7 +770,7 @@ void MapBlock::deSerializeNetworkSpecific(std::istream &is)
}
catch(SerializationError &e)
{
- errorstream<<"WARNING: MapBlock::deSerializeNetworkSpecific(): Ignoring an error"
+ warningstream<<"MapBlock::deSerializeNetworkSpecific(): Ignoring an error"
<<": "<<e.what()<<std::endl;
}
}
@@ -797,12 +797,12 @@ void MapBlock::deSerialize_pre22(std::istream &is, u8 version, bool disk)
is.read(&tmp, 1);
if (is.gcount() != 1)
throw SerializationError(std::string(__FUNCTION_NAME)
- + ": no enough input data");
+ + ": not enough input data");
is_underground = tmp;
is.read((char *)*databuf_nodelist, nodecount * ser_length);
if ((u32)is.gcount() != nodecount * ser_length)
throw SerializationError(std::string(__FUNCTION_NAME)
- + ": no enough input data");
+ + ": not enough input data");
} else if (version <= 10) {
u8 t8;
is.read((char *)&t8, 1);
@@ -815,7 +815,7 @@ void MapBlock::deSerialize_pre22(std::istream &is, u8 version, bool disk)
std::string s = os.str();
if (s.size() != nodecount)
throw SerializationError(std::string(__FUNCTION_NAME)
- + ": no enough input data");
+ + ": not enough input data");
for (u32 i = 0; i < s.size(); i++) {
databuf_nodelist[i*ser_length] = s[i];
}
@@ -827,7 +827,7 @@ void MapBlock::deSerialize_pre22(std::istream &is, u8 version, bool disk)
std::string s = os.str();
if (s.size() != nodecount)
throw SerializationError(std::string(__FUNCTION_NAME)
- + ": no enough input data");
+ + ": not enough input data");
for (u32 i = 0; i < s.size(); i++) {
databuf_nodelist[i*ser_length + 1] = s[i];
}
@@ -840,7 +840,7 @@ void MapBlock::deSerialize_pre22(std::istream &is, u8 version, bool disk)
std::string s = os.str();
if (s.size() != nodecount)
throw SerializationError(std::string(__FUNCTION_NAME)
- + ": no enough input data");
+ + ": not enough input data");
for (u32 i = 0; i < s.size(); i++) {
databuf_nodelist[i*ser_length + 2] = s[i];
}
@@ -891,7 +891,7 @@ void MapBlock::deSerialize_pre22(std::istream &is, u8 version, bool disk)
m_gamedef->idef());
}
} catch(SerializationError &e) {
- errorstream<<"WARNING: MapBlock::deSerialize(): Ignoring an error"
+ warningstream<<"MapBlock::deSerialize(): Ignoring an error"
<<" while deserializing node metadata"<<std::endl;
}
}
@@ -910,7 +910,7 @@ void MapBlock::deSerialize_pre22(std::istream &is, u8 version, bool disk)
u16 count = readU16(is);
// Not supported and length not known if count is not 0
if(count != 0){
- errorstream<<"WARNING: MapBlock::deSerialize_pre22(): "
+ warningstream<<"MapBlock::deSerialize_pre22(): "
<<"Ignoring stuff coming at and after MBOs"<<std::endl;
return;
}