summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Monster.h
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.h
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.h')
-rw-r--r--src/Mobs/Monster.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Mobs/Monster.h b/src/Mobs/Monster.h
index 6db8435e2..ca3c04c23 100644
--- a/src/Mobs/Monster.h
+++ b/src/Mobs/Monster.h
@@ -138,8 +138,8 @@ public:
/// Sets whether the mob burns in daylight. Only evaluated at next burn-decision tick
void SetBurnsInDaylight(bool a_BurnsInDaylight) { m_BurnsInDaylight = a_BurnsInDaylight; }
- double GetWalkSpeed(void) const { return m_WalkSpeed; } // tolua_export
- void SetWalkSpeed(double a_WalkSpeed) { m_WalkSpeed = a_WalkSpeed; } // tolua_export
+ double GetRelativeWalkSpeed(void) const { return m_RelativeWalkSpeed; } // tolua_export
+ void SetRelativeWalkSpeed(double a_WalkSpeed) { m_RelativeWalkSpeed = a_WalkSpeed; } // tolua_export
// Overridables to handle ageable mobs
virtual bool IsBaby (void) const { return false; }
@@ -251,7 +251,7 @@ protected:
void HandleDaylightBurning(cChunk & a_Chunk);
bool m_BurnsInDaylight;
- double m_WalkSpeed;
+ double m_RelativeWalkSpeed;
/** Adds a random number of a_Item between a_Min and a_Max to itemdrops a_Drops*/
void AddRandomDropItem(cItems & a_Drops, unsigned int a_Min, unsigned int a_Max, short a_Item, short a_ItemHealth = 0);