summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-04-15 17:15:30 +0300
committerAndrei Karas <akaras@inbox.ru>2015-04-15 17:15:30 +0300
commit48a60b78c61d67ab205ebb233a0ad9dc0fe125b4 (patch)
tree5b10cdceb18b28aea9d1abd3f5df038fac472ec1 /src/net
parente39ac061384a0877367b9a7fbd24b1a01626be3d (diff)
downloadmv-48a60b78c61d67ab205ebb233a0ad9dc0fe125b4.tar.gz
mv-48a60b78c61d67ab205ebb233a0ad9dc0fe125b4.tar.bz2
mv-48a60b78c61d67ab205ebb233a0ad9dc0fe125b4.tar.xz
mv-48a60b78c61d67ab205ebb233a0ad9dc0fe125b4.zip
eathena: fix default walk delay parameter in stats.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/charserverhandler.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp
index 6896b860d..f1893e4b5 100644
--- a/src/net/eathena/charserverhandler.cpp
+++ b/src/net/eathena/charserverhandler.cpp
@@ -41,6 +41,7 @@
#include "net/eathena/loginhandler.h"
#include "net/eathena/messageout.h"
#include "net/eathena/network.h"
+#include "net/eathena/playerhandler.h"
#include "net/eathena/protocol.h"
#include "net/eathena/sprite.h"
@@ -452,6 +453,8 @@ void CharServerHandler::processCharMapInfo(Net::MessageIn &restrict msg)
// Prevent the selected local player from being deleted
localPlayer = mSelectedCharacter->dummy;
PlayerInfo::setBackend(mSelectedCharacter->data);
+ PlayerInfo::setStatBase(Attributes::WALK_SPEED,
+ playerHandler->getDefaultWalkSpeed().x);
mSelectedCharacter->dummy = nullptr;