diff options
author | Andrei Karas <akaras@inbox.ru> | 2010-01-10 17:19:24 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-01-10 17:20:33 +0100 |
commit | f5a394a5051384a930d635da22ccafc6beb1cb84 (patch) | |
tree | d28fc14408a6bb91170e05880b4d2af6a17fcc14 /src/net/manaserv/network.cpp | |
parent | 5757066312cab082378dbc5d8df97dea3fe40af0 (diff) | |
download | mana-f5a394a5051384a930d635da22ccafc6beb1cb84.tar.gz mana-f5a394a5051384a930d635da22ccafc6beb1cb84.tar.bz2 mana-f5a394a5051384a930d635da22ccafc6beb1cb84.tar.xz mana-f5a394a5051384a930d635da22ccafc6beb1cb84.zip |
Change code style
Diffstat (limited to 'src/net/manaserv/network.cpp')
-rw-r--r-- | src/net/manaserv/network.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/net/manaserv/network.cpp b/src/net/manaserv/network.cpp index 0ca61fc2..83d78e06 100644 --- a/src/net/manaserv/network.cpp +++ b/src/net/manaserv/network.cpp @@ -66,7 +66,8 @@ void finalize() if (!client) return; // Wasn't initialized at all - if (connections) { + if (connections) + { logger->error("Tried to shutdown the network subsystem while there " "are network connections left!"); } @@ -120,12 +121,14 @@ namespace MessageHandlerIterator iter = mMessageHandlers.find(msg.getId()); - if (iter != mMessageHandlers.end()) { + if (iter != mMessageHandlers.end()) + { //logger->log("Received packet %x (%i B)", // msg.getId(), msg.getLength()); iter->second->handleMessage(msg); } - else { + else + { logger->log("Unhandled packet %x (%i B)", msg.getId(), msg.getLength()); } |