diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-03 00:51:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-06 01:18:56 +0300 |
commit | 6c4ea4c75fb64a4594503e46d1a3238860c845c9 (patch) | |
tree | b4fb4b6d64a5c604da3bebe480fbb2eb1faf8370 /src/net | |
parent | d1b748607aae28c82c0f53e0a97bc988174f6b7a (diff) | |
download | mv-6c4ea4c75fb64a4594503e46d1a3238860c845c9.tar.gz mv-6c4ea4c75fb64a4594503e46d1a3238860c845c9.tar.bz2 mv-6c4ea4c75fb64a4594503e46d1a3238860c845c9.tar.xz mv-6c4ea4c75fb64a4594503e46d1a3238860c845c9.zip |
eathena: fix moving speed.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/eathena/playerhandler.cpp | 9 |
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") } |