summaryrefslogtreecommitdiff
path: root/src/game-server/mapreader.cpp
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-01-05 20:12:51 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-01-05 20:12:51 +0000
commit593e65eef0d43f2ff61dc1b4f3160c0a16b5f015 (patch)
tree8e0a1ca0c73778f0e4d71f4da4d5c47f272915b9 /src/game-server/mapreader.cpp
parentf96ca90ba90da3175be96ff7ed34efb78ea5dfed (diff)
downloadmanaserv-593e65eef0d43f2ff61dc1b4f3160c0a16b5f015.tar.gz
manaserv-593e65eef0d43f2ff61dc1b4f3160c0a16b5f015.tar.bz2
manaserv-593e65eef0d43f2ff61dc1b4f3160c0a16b5f015.tar.xz
manaserv-593e65eef0d43f2ff61dc1b4f3160c0a16b5f015.zip
Simplified handling of verbosity levels. Optimized code by generating only needed messages.
Diffstat (limited to 'src/game-server/mapreader.cpp')
-rw-r--r--src/game-server/mapreader.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/game-server/mapreader.cpp b/src/game-server/mapreader.cpp
index 63d81a64..cc26f03f 100644
--- a/src/game-server/mapreader.cpp
+++ b/src/game-server/mapreader.cpp
@@ -44,7 +44,7 @@ Map *MapReader::readMap(const std::string &filename)
if (buffer == NULL)
{
- LOG_ERROR("Error: Map file not found (" << filename.c_str() << ")", 0);
+ LOG_ERROR("Error: Map file not found (" << filename.c_str() << ")");
return NULL;
}
@@ -64,7 +64,7 @@ Map *MapReader::readMap(const std::string &filename)
if (!doc)
{
- LOG_ERROR("Error while parsing map file (" << filename << ")!", 0);
+ LOG_ERROR("Error while parsing map file (" << filename << ")!");
return NULL;
}
@@ -78,7 +78,7 @@ Map *MapReader::readMap(const std::string &filename)
}
else
{
- LOG_ERROR("Error: Not a map file (" << filename << ")!", 0);
+ LOG_ERROR("Error: Not a map file (" << filename << ")!");
}
xmlFreeDoc(doc);
@@ -122,7 +122,7 @@ static Map *readMap(xmlNodePtr node, std::string const &path)
{
if (xmlHasProp(node, BAD_CAST "source"))
{
- LOG_WARN("Warning: External tilesets not supported yet.", 0);
+ LOG_WARN("Warning: External tilesets not supported yet.");
}
else
{
@@ -163,7 +163,7 @@ static void readLayer(xmlNodePtr node, Map *map)
{
if (xmlHasProp(node, BAD_CAST "compression"))
{
- LOG_WARN("Warning: no layer compression supported!", 0);
+ LOG_WARN("Warning: no layer compression supported!");
return;
}