summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-11-16 11:39:39 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-11-16 11:39:39 +0000
commitd3c7728804e762338669e6e9bd1b30d543ef8ee5 (patch)
tree51ee7ed7fcf9941749f2fc1301977d836f10fbcc
parent89e78bcc5b29a8dd14422a8fa6a23a17a93e98e0 (diff)
downloadmana-d3c7728804e762338669e6e9bd1b30d543ef8ee5.tar.gz
mana-d3c7728804e762338669e6e9bd1b30d543ef8ee5.tar.bz2
mana-d3c7728804e762338669e6e9bd1b30d543ef8ee5.tar.xz
mana-d3c7728804e762338669e6e9bd1b30d543ef8ee5.zip
Reduced noise in log file.
-rw-r--r--ChangeLog2
-rw-r--r--src/net/connection.cpp2
-rw-r--r--src/net/network.cpp4
-rw-r--r--src/resources/mapreader.cpp10
4 files changed, 14 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 5ad5ac46..8f41a806 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,8 @@
* src/resources/resourcemanager.h, src/resources/resource.h,
src/resources/resourcemanager.cpp, src/resources/resource.cpp: Delayed
resource deletion by 30 seconds.
+ * src/net/connection.cpp, src/resources/mapreader.cpp,
+ src/net/network.cpp: Reduced noise in log file.
2007-11-16 Eugenio Favalli <elvenprogrammer@gmail.com>
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);