summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-09-07 16:42:34 +0200
committermadmaxoft <github@xoft.cz>2013-09-07 16:42:34 +0200
commit5f8a46373d4ccd4e4d884660b9d8a4e77015a2b7 (patch)
tree5e8d4c1bbfadc8f89212ee296811824e10cf26a8
parentImplemented SteerVehicle packet. (diff)
downloadcuberite-5f8a46373d4ccd4e4d884660b9d8a4e77015a2b7.tar
cuberite-5f8a46373d4ccd4e4d884660b9d8a4e77015a2b7.tar.gz
cuberite-5f8a46373d4ccd4e4d884660b9d8a4e77015a2b7.tar.bz2
cuberite-5f8a46373d4ccd4e4d884660b9d8a4e77015a2b7.tar.lz
cuberite-5f8a46373d4ccd4e4d884660b9d8a4e77015a2b7.tar.xz
cuberite-5f8a46373d4ccd4e4d884660b9d8a4e77015a2b7.tar.zst
cuberite-5f8a46373d4ccd4e4d884660b9d8a4e77015a2b7.zip
-rw-r--r--source/Mobs/Monster.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/Mobs/Monster.cpp b/source/Mobs/Monster.cpp
index 11b530968..a42ae30ee 100644
--- a/source/Mobs/Monster.cpp
+++ b/source/Mobs/Monster.cpp
@@ -26,6 +26,8 @@
cMonster::cMonster(const AString & a_ConfigName, char a_ProtocolMobType, const AString & a_SoundHurt, const AString & a_SoundDeath, double a_Width, double a_Height)
: super(etMob, a_Width, a_Height)
, m_Target(NULL)
+ , m_AttackRate(3)
+ , idle_interval(0)
, m_bMovingToDestination(false)
, m_DestinationTime( 0 )
, m_DestroyTimer( 0 )
@@ -40,8 +42,7 @@ cMonster::cMonster(const AString & a_ConfigName, char a_ProtocolMobType, const A
, m_AttackDamage(1.0f)
, m_AttackRange(5.0f)
, m_AttackInterval(0)
- , m_AttackRate(3)
- , idle_interval(0)
+ , m_BurnsInDaylight(false)
{
if (!a_ConfigName.empty())
{