summaryrefslogtreecommitdiff
path: root/src/net/messagein.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-03-14 04:35:05 +0200
committerAndrei Karas <akaras@inbox.ru>2011-03-14 04:35:05 +0200
commite8bc0d9fd1be148f111f2c560e563e0552fc9f50 (patch)
treedd6e68087e2fbd166f54fe9fd4013223864b0612 /src/net/messagein.cpp
parent81639ccbd66d225c86998d6127dd8c7ca2b5e745 (diff)
downloadManaVerse-e8bc0d9fd1be148f111f2c560e563e0552fc9f50.tar.gz
ManaVerse-e8bc0d9fd1be148f111f2c560e563e0552fc9f50.tar.bz2
ManaVerse-e8bc0d9fd1be148f111f2c560e563e0552fc9f50.tar.xz
ManaVerse-e8bc0d9fd1be148f111f2c560e563e0552fc9f50.zip
Fixing direction bug in moving.
While player moving server dont send player direction. This autofixing in nextTile method, but if this method was not called, then player have incorrect direction. Also move checking direction 8 from beinghandler.cpp to messagein.cpp like was done in mana client.
Diffstat (limited to 'src/net/messagein.cpp')
-rw-r--r--src/net/messagein.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/net/messagein.cpp b/src/net/messagein.cpp
index 805861870..e39a443f1 100644
--- a/src/net/messagein.cpp
+++ b/src/net/messagein.cpp
@@ -25,6 +25,7 @@
#include "net/packetcounters.h"
#include "log.h"
+#include "net.h"
#include "utils/stringutils.h"
@@ -113,7 +114,14 @@ 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:
+ logger->log("incorrect direction: %d", (int)direction);
// OOPSIE! Impossible or unknown
direction = 0;
}