summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Monster.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-09-02 20:10:41 +0200
committerHowaner <franzi.moos@googlemail.com>2014-09-02 20:10:41 +0200
commit38e824dbcfa66ee63670f6e8aa708e7a4aa58f5e (patch)
tree0d57c7ff7237e084644cf40a9f5c371bb6412643 /src/Mobs/Monster.cpp
parentMerge branch 'master' into Effects (diff)
downloadcuberite-38e824dbcfa66ee63670f6e8aa708e7a4aa58f5e.tar
cuberite-38e824dbcfa66ee63670f6e8aa708e7a4aa58f5e.tar.gz
cuberite-38e824dbcfa66ee63670f6e8aa708e7a4aa58f5e.tar.bz2
cuberite-38e824dbcfa66ee63670f6e8aa708e7a4aa58f5e.tar.lz
cuberite-38e824dbcfa66ee63670f6e8aa708e7a4aa58f5e.tar.xz
cuberite-38e824dbcfa66ee63670f6e8aa708e7a4aa58f5e.tar.zst
cuberite-38e824dbcfa66ee63670f6e8aa708e7a4aa58f5e.zip
Diffstat (limited to 'src/Mobs/Monster.cpp')
-rw-r--r--src/Mobs/Monster.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Mobs/Monster.cpp b/src/Mobs/Monster.cpp
index 09a22cd35..7e40794b1 100644
--- a/src/Mobs/Monster.cpp
+++ b/src/Mobs/Monster.cpp
@@ -89,7 +89,7 @@ cMonster::cMonster(const AString & a_ConfigName, eType a_MobType, const AString
, m_DropChanceBoots(0.085f)
, m_CanPickUpLoot(true)
, m_BurnsInDaylight(false)
- , m_WalkSpeed(1.0)
+ , m_RelativeWalkSpeed(1.0)
{
if (!a_ConfigName.empty())
{
@@ -304,7 +304,7 @@ void cMonster::Tick(float a_Dt, cChunk & a_Chunk)
}
// Apply walk speed:
- Distance *= m_WalkSpeed;
+ Distance *= m_RelativeWalkSpeed;
AddSpeedX(Distance.x);
AddSpeedZ(Distance.z);