diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-11-16 11:39:39 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-11-16 11:39:39 +0000 |
commit | d3c7728804e762338669e6e9bd1b30d543ef8ee5 (patch) | |
tree | 51ee7ed7fcf9941749f2fc1301977d836f10fbcc /src/resources | |
parent | 89e78bcc5b29a8dd14422a8fa6a23a17a93e98e0 (diff) | |
download | mana-client-d3c7728804e762338669e6e9bd1b30d543ef8ee5.tar.gz mana-client-d3c7728804e762338669e6e9bd1b30d543ef8ee5.tar.bz2 mana-client-d3c7728804e762338669e6e9bd1b30d543ef8ee5.tar.xz mana-client-d3c7728804e762338669e6e9bd1b30d543ef8ee5.zip |
Reduced noise in log file.
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/mapreader.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp index 940ded36..a07fc18d 100644 --- a/src/resources/mapreader.cpp +++ b/src/resources/mapreader.cpp @@ -248,8 +248,16 @@ MapReader::readMap(xmlNodePtr node, const std::string &path) { if (xmlStrEqual(objectNode->name, BAD_CAST "object")) { - std::string objName = XML::getProperty(objectNode, "name", ""); std::string objType = XML::getProperty(objectNode, "type", ""); + + if (objType == "WARP" || objType == "NPC" || + objType == "SCRIPT" || objType == "SPAWN") + { + // Silently skip server-side objects. + continue; + } + + std::string objName = XML::getProperty(objectNode, "name", ""); int objX = XML::getProperty(objectNode, "x", 0); int objY = XML::getProperty(objectNode, "y", 0); |