summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-03-19 00:27:45 +0200
committerAndrei Karas <akaras@inbox.ru>2011-03-19 00:27:45 +0200
commitb2ac4def24379db588ffa52ca63676710f18b4fc (patch)
tree09a76cb672d032cd6b8f41fd3f5afc6c3836839f /src/net/tmwa
parentf4792bc06f21335fc2d1171d937ea7645ca0c253 (diff)
downloadmanaplus-b2ac4def24379db588ffa52ca63676710f18b4fc.tar.gz
manaplus-b2ac4def24379db588ffa52ca63676710f18b4fc.tar.bz2
manaplus-b2ac4def24379db588ffa52ca63676710f18b4fc.tar.xz
manaplus-b2ac4def24379db588ffa52ca63676710f18b4fc.zip
Fix code style and add small optimisations.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/messageout.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/tmwa/messageout.cpp b/src/net/tmwa/messageout.cpp
index 17314937d..b6fcc09a1 100644
--- a/src/net/tmwa/messageout.cpp
+++ b/src/net/tmwa/messageout.cpp
@@ -82,7 +82,8 @@ void MessageOut::writeInt32(Sint32 value)
}
#define LOBYTE(w) (static_cast<unsigned char>(w))
-#define HIBYTE(w) (static_cast<unsigned char>((static_cast<unsigned short>(w)) >> 8))
+#define HIBYTE(w) (static_cast<unsigned char>(( \
+static_cast<unsigned short>(w)) >> 8))
void MessageOut::writeCoordinates(unsigned short x, unsigned short y,
unsigned char direction)