From a1408dbee9abd41d724599c260f2599038e64a72 Mon Sep 17 00:00:00 2001 From: Stefan Dombrowski Date: Sat, 4 Jun 2011 21:43:49 +0200 Subject: Fixing movement on tA Signed-off-by: Jared Adams --- src/net/tmwa/messageout.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/net/tmwa/messageout.cpp') 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 -- cgit v1.2.3-70-g09d2