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 | |
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')
-rw-r--r-- | src/net/connection.cpp | 2 | ||||
-rw-r--r-- | src/net/network.cpp | 4 | ||||
-rw-r--r-- | src/resources/mapreader.cpp | 10 |
3 files changed, 12 insertions, 4 deletions
diff --git a/src/net/connection.cpp b/src/net/connection.cpp index ce060ae7..caaa0ce1 100644 --- a/src/net/connection.cpp +++ b/src/net/connection.cpp @@ -96,7 +96,7 @@ void Net::Connection::send(const MessageOut &msg) return; } - logger->log("Sending message of size %d...", msg.getDataSize()); + //logger->log("Sending message of size %d...", msg.getDataSize()); ENetPacket *packet = enet_packet_create(msg.getData(), msg.getDataSize(), diff --git a/src/net/network.cpp b/src/net/network.cpp index 6b29ff33..7cf4bf49 100644 --- a/src/net/network.cpp +++ b/src/net/network.cpp @@ -124,8 +124,8 @@ namespace MessageHandlerIterator iter = mMessageHandlers.find(msg.getId()); if (iter != mMessageHandlers.end()) { - logger->log("Received packet %x (%i B)", - msg.getId(), msg.getLength()); + //logger->log("Received packet %x (%i B)", + // msg.getId(), msg.getLength()); iter->second->handleMessage(msg); } else { 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); |