summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-17 11:34:24 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-17 11:34:24 +0300
commit8cf91f6df71db6a2c7ca114cc3a7c6666f63c4d0 (patch)
treec55088930bdf1ff0b7fe1f4d6f9219ca6c55e9c9 /src/being/being.cpp
parent4eaedf092bc504fae492827b1a89e7bbaac20263 (diff)
downloadmv-8cf91f6df71db6a2c7ca114cc3a7c6666f63c4d0.tar.gz
mv-8cf91f6df71db6a2c7ca114cc3a7c6666f63c4d0.tar.bz2
mv-8cf91f6df71db6a2c7ca114cc3a7c6666f63c4d0.tar.xz
mv-8cf91f6df71db6a2c7ca114cc3a7c6666f63c4d0.zip
Remove getter for playerHandler.
Diffstat (limited to 'src/being/being.cpp')
-rw-r--r--src/being/being.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index 303e9f8f9..e0aa5f29c 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -164,8 +164,8 @@ Being::Being(const int id,
mIsGM(false),
mType(type),
mSpeechBubble(nullptr),
- mWalkSpeed(Net::getPlayerHandler()->getDefaultWalkSpeed()),
- mSpeed(Net::getPlayerHandler()->getDefaultWalkSpeed().x),
+ mWalkSpeed(playerHandler->getDefaultWalkSpeed()),
+ mSpeed(playerHandler->getDefaultWalkSpeed().x),
mIp(),
mSpriteRemap(new int[20]),
mSpriteHide(new int[20]),
@@ -325,14 +325,9 @@ void Being::setSubtype(const uint16_t subtype, const uint8_t look)
mYDiff = mInfo->getSortOffsetY();
const int speed = mInfo->getWalkSpeed();
if (!speed)
- {
- setWalkSpeed(Net::getPlayerHandler()
- ->getDefaultWalkSpeed());
- }
+ setWalkSpeed(playerHandler->getDefaultWalkSpeed());
else
- {
setWalkSpeed(Vector(speed, speed, 0));
- }
}
}
else if (mType == ActorType::Player)