summaryrefslogtreecommitdiff
path: root/src/net/eathena/playerhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-03 00:51:13 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-06 01:18:56 +0300
commit6c4ea4c75fb64a4594503e46d1a3238860c845c9 (patch)
treeb4fb4b6d64a5c604da3bebe480fbb2eb1faf8370 /src/net/eathena/playerhandler.cpp
parentd1b748607aae28c82c0f53e0a97bc988174f6b7a (diff)
downloadmv-6c4ea4c75fb64a4594503e46d1a3238860c845c9.tar.gz
mv-6c4ea4c75fb64a4594503e46d1a3238860c845c9.tar.bz2
mv-6c4ea4c75fb64a4594503e46d1a3238860c845c9.tar.xz
mv-6c4ea4c75fb64a4594503e46d1a3238860c845c9.zip
eathena: fix moving speed.
Diffstat (limited to 'src/net/eathena/playerhandler.cpp')
-rw-r--r--src/net/eathena/playerhandler.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp
index deb89a706..e830db43c 100644
--- a/src/net/eathena/playerhandler.cpp
+++ b/src/net/eathena/playerhandler.cpp
@@ -315,12 +315,9 @@ void PlayerHandler::processPlayerStatUpdate5(Net::MessageIn &msg)
PlayerInfo::setStatBase(CRIT, msg.readInt16("crit/10"));
- const int speed = msg.readInt16("speed");
- localPlayer->setWalkSpeed(Vector(static_cast<float>(speed),
- static_cast<float>(speed), 0));
- PlayerInfo::setStatBase(Attributes::WALK_SPEED, speed);
- PlayerInfo::setStatMod(Attributes::WALK_SPEED,
- msg.readInt16("plus speed = 0"));
+ PlayerInfo::setAttribute(Attributes::ATTACK_DELAY,
+ msg.readInt16("attack speed"));
+ msg.readInt16("plus speed = 0");
BLOCK_END("PlayerHandler::processPlayerStatUpdate5")
}