diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-06 22:46:15 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-06 22:46:15 +0200 |
commit | f0fd20fdd649eb61fa0d2444d910a2b0882e3580 (patch) | |
tree | ee879af37c773e8a40b353e6e1e714ab5e1f45b1 /src/net/tmwserv/beinghandler.cpp | |
parent | 7ee2220427d8735c777f504517c24c49afda699f (diff) | |
download | mana-f0fd20fdd649eb61fa0d2444d910a2b0882e3580.tar.gz mana-f0fd20fdd649eb61fa0d2444d910a2b0882e3580.tar.bz2 mana-f0fd20fdd649eb61fa0d2444d910a2b0882e3580.tar.xz mana-f0fd20fdd649eb61fa0d2444d910a2b0882e3580.zip |
Moved many MessageOut constructions around
No real point in having these abstracted away twice. We're using network
interfaces now instead of functions structured in namespaces.
Diffstat (limited to 'src/net/tmwserv/beinghandler.cpp')
-rw-r--r-- | src/net/tmwserv/beinghandler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/tmwserv/beinghandler.cpp b/src/net/tmwserv/beinghandler.cpp index 08847d7d..0752497e 100644 --- a/src/net/tmwserv/beinghandler.cpp +++ b/src/net/tmwserv/beinghandler.cpp @@ -41,8 +41,6 @@ #include "net/tmwserv/gameserver/player.h" -const int EMOTION_TIME = 150; /**< Duration of emotion icon */ - BeingHandler::BeingHandler() { static const Uint16 _messages[] = { @@ -172,7 +170,8 @@ void BeingHandler::handleBeingEnterMessage(MessageIn &msg) void BeingHandler::handleBeingLeaveMessage(MessageIn &msg) { Being *being = beingManager->findBeing(msg.readInt16()); - if (!being) return; + if (!being) + return; beingManager->destroyBeing(being); } @@ -346,7 +345,8 @@ void BeingHandler::handleBeingLooksChangeMessage(MessageIn &msg) void BeingHandler::handleBeingDirChangeMessage(MessageIn &msg) { Being *being = beingManager->findBeing(msg.readInt16()); - if (!being) return; + if (!being) + return; int data = msg.readInt8(); switch (data) { |