diff options
author | Stefan Dombrowski <stefan@uni-bonn.de> | 2011-06-04 21:43:49 +0200 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2011-06-04 14:58:15 -0600 |
commit | a1408dbee9abd41d724599c260f2599038e64a72 (patch) | |
tree | d7c95aaa000a81a99cfe60ed0617eb119e091ce6 /src/net/tmwa/messageout.cpp | |
parent | a86402d7f0d0af16008f22cc9587127c334eab28 (diff) | |
download | mana-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.cpp | 4 |
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 |