From 6c4ea4c75fb64a4594503e46d1a3238860c845c9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 3 Sep 2014 00:51:13 +0300 Subject: eathena: fix moving speed. --- src/net/eathena/playerhandler.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/net') 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(speed), - static_cast(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") } -- cgit v1.2.3-70-g09d2