summaryrefslogtreecommitdiff
path: root/src/being/being.cpp
diff options
context:
space:
mode:
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)