summaryrefslogtreecommitdiff
path: root/src/net/ea/playerhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-05 18:33:57 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-05 18:33:57 +0300
commit1c34872aea8d196708aec8277017b467d01d09b0 (patch)
treedd14d98c40666797d1c5c14f39a5f117d17d791c /src/net/ea/playerhandler.cpp
parent3fae3f59aad1f1f2eee1e1bfa088672787bc9c78 (diff)
downloadmv-1c34872aea8d196708aec8277017b467d01d09b0.tar.gz
mv-1c34872aea8d196708aec8277017b467d01d09b0.tar.bz2
mv-1c34872aea8d196708aec8277017b467d01d09b0.tar.xz
mv-1c34872aea8d196708aec8277017b467d01d09b0.zip
Replace in Being speed field from vector to int.
Diffstat (limited to 'src/net/ea/playerhandler.cpp')
-rw-r--r--src/net/ea/playerhandler.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/net/ea/playerhandler.cpp b/src/net/ea/playerhandler.cpp
index 65466ba5e..d6464028e 100644
--- a/src/net/ea/playerhandler.cpp
+++ b/src/net/ea/playerhandler.cpp
@@ -59,11 +59,9 @@ void PlayerHandler::ignoreAll(const bool ignore A_UNUSED) const
{
}
-Vector PlayerHandler::getDefaultWalkSpeed() const
+int PlayerHandler::getDefaultWalkSpeed() const
{
- // Return an normalized speed for any side
- // as the offset is calculated elsewhere.
- return Vector(150, 150, 0);
+ return 150;
}
bool PlayerHandler::canUseMagic() const
@@ -85,8 +83,7 @@ void PlayerHandler::setStat(Net::MessageIn &msg,
switch (type)
{
case Ea::WALK_SPEED:
- localPlayer->setWalkSpeed(Vector(static_cast<float>(
- base), static_cast<float>(base), 0));
+ localPlayer->setWalkSpeed(base);
PlayerInfo::setStatBase(Attributes::WALK_SPEED, base);
PlayerInfo::setStatMod(Attributes::WALK_SPEED, 0);
break;