summaryrefslogtreecommitdiff
path: root/src/net/eathena
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/eathena
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/eathena')
-rw-r--r--src/net/eathena/beingrecv.cpp6
-rw-r--r--src/net/eathena/charserverrecv.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/net/eathena/beingrecv.cpp b/src/net/eathena/beingrecv.cpp
index b6e30d7fc..8e6293bbe 100644
--- a/src/net/eathena/beingrecv.cpp
+++ b/src/net/eathena/beingrecv.cpp
@@ -318,7 +318,7 @@ void BeingRecv::processBeingVisible(Net::MessageIn &msg)
if (speed == 0)
speed = 150;
- dstBeing->setWalkSpeed(Vector(speed, speed, 0));
+ dstBeing->setWalkSpeed(speed);
dstBeing->setSubtype(fromInt(job, BeingTypeId), 0);
if (dstBeing->getType() == ActorType::Monster && localPlayer)
localPlayer->checkNewName(dstBeing);
@@ -482,7 +482,7 @@ void BeingRecv::processBeingMove(Net::MessageIn &msg)
if (speed == 0)
speed = 150;
- dstBeing->setWalkSpeed(Vector(speed, speed, 0));
+ dstBeing->setWalkSpeed(speed);
dstBeing->setSubtype(fromInt(job, BeingTypeId), 0);
if (dstBeing->getType() == ActorType::Monster && localPlayer)
localPlayer->checkNewName(dstBeing);
@@ -656,7 +656,7 @@ void BeingRecv::processBeingSpawn(Net::MessageIn &msg)
if (speed == 0)
speed = 150;
- dstBeing->setWalkSpeed(Vector(speed, speed, 0));
+ dstBeing->setWalkSpeed(speed);
dstBeing->setSubtype(fromInt(job, BeingTypeId), 0);
if (dstBeing->getType() == ActorType::Monster && localPlayer)
localPlayer->checkNewName(dstBeing);
diff --git a/src/net/eathena/charserverrecv.cpp b/src/net/eathena/charserverrecv.cpp
index e82a8c144..452180d55 100644
--- a/src/net/eathena/charserverrecv.cpp
+++ b/src/net/eathena/charserverrecv.cpp
@@ -238,7 +238,7 @@ void CharServerRecv::processCharMapInfo(Net::MessageIn &restrict msg)
localPlayer = charServerHandler->mSelectedCharacter->dummy;
PlayerInfo::setBackend(charServerHandler->mSelectedCharacter->data);
PlayerInfo::setStatBase(Attributes::WALK_SPEED,
- playerHandler->getDefaultWalkSpeed().x);
+ playerHandler->getDefaultWalkSpeed());
charServerHandler->mSelectedCharacter->dummy = nullptr;