summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Dombrowski <stefan@uni-bonn.de>2010-10-17 00:05:14 +0200
committerStefan Dombrowski <stefan@uni-bonn.de>2010-10-17 00:05:14 +0200
commitbc409be3aa785f3646ad0f2372a3da9cf0783c77 (patch)
treec16a424b680f8ff0a1b59c2a46e6a80c9079d8c9
parent58f04040cea0c7eb64388925dcdf8de848dd47c2 (diff)
downloadmana-bc409be3aa785f3646ad0f2372a3da9cf0783c77.tar.gz
mana-bc409be3aa785f3646ad0f2372a3da9cf0783c77.tar.bz2
mana-bc409be3aa785f3646ad0f2372a3da9cf0783c77.tar.xz
mana-bc409be3aa785f3646ad0f2372a3da9cf0783c77.zip
Fixing missing translation of direction for tA-server
Reviewed-by: Bertram
-rw-r--r--src/net/messagein.cpp7
1 files changed, 7 insertions, 0 deletions
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;