From 48a60b78c61d67ab205ebb233a0ad9dc0fe125b4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 15 Apr 2015 17:15:30 +0300 Subject: eathena: fix default walk delay parameter in stats. --- src/net/eathena/charserverhandler.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/net/eathena') 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; -- cgit v1.2.3-70-g09d2