From bc409be3aa785f3646ad0f2372a3da9cf0783c77 Mon Sep 17 00:00:00 2001 From: Stefan Dombrowski Date: Sun, 17 Oct 2010 00:05:14 +0200 Subject: Fixing missing translation of direction for tA-server Reviewed-by: Bertram --- src/net/messagein.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/net/messagein.cpp b/src/net/messagein.cpp index 6a5adbe1..5f1e96b7 100644 --- a/src/net/messagein.cpp +++ b/src/net/messagein.cpp @@ -20,6 +20,7 @@ */ #include "net/messagein.h" +#include "net/net.h" #define MAKEWORD(low,high) \ ((unsigned short)(((unsigned char)(low)) | \ @@ -97,6 +98,12 @@ void MessageIn::readCoordinates(Uint16 &x, Uint16 &y, Uint8 &direction) case 7: direction = 9; break; + case 8: + if (Net::getNetworkType() == ServerInfo::TMWATHENA) + { + direction = 8; + break; + } default: // OOPSIE! Impossible or unknown direction = 0; -- cgit v1.2.3-70-g09d2