summaryrefslogtreecommitdiff
path: root/src/net/tmwa/messageout.cpp
diff options
context:
space:
mode:
authorStefan Dombrowski <stefan@uni-bonn.de>2011-06-04 21:43:49 +0200
committerJared Adams <jaxad0127@gmail.com>2011-06-04 14:58:15 -0600
commita1408dbee9abd41d724599c260f2599038e64a72 (patch)
treed7c95aaa000a81a99cfe60ed0617eb119e091ce6 /src/net/tmwa/messageout.cpp
parenta86402d7f0d0af16008f22cc9587127c334eab28 (diff)
downloadmana-a1408dbee9abd41d724599c260f2599038e64a72.tar.gz
mana-a1408dbee9abd41d724599c260f2599038e64a72.tar.bz2
mana-a1408dbee9abd41d724599c260f2599038e64a72.tar.xz
mana-a1408dbee9abd41d724599c260f2599038e64a72.zip
Fixing movement on tA
Signed-off-by: Jared Adams <jaxad0127@gmail.com>
Diffstat (limited to 'src/net/tmwa/messageout.cpp')
-rw-r--r--src/net/tmwa/messageout.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/tmwa/messageout.cpp b/src/net/tmwa/messageout.cpp
index 705b9a96..a08ea48d 100644
--- a/src/net/tmwa/messageout.cpp
+++ b/src/net/tmwa/messageout.cpp
@@ -74,14 +74,14 @@ void MessageOut::writeCoordinates(uint16_t x, uint16_t y, uint8_t direction)
mNetwork->mOutSize += 3;
mPos += 3;
- int16_t temp = x;
+ uint16_t temp = x;
temp <<= 6;
data[0] = temp >> 8;
data[1] = temp;
temp = y;
temp <<= 4;
- data[1] |= temp << 8;
+ data[1] |= temp >> 8;
data[2] = temp;
// Translate direction to eAthena format