Changed entity ownership model to use smart pointers
This commit is contained in:
@@ -15,6 +15,7 @@ cWither::cWither(void) :
|
||||
m_WitherInvulnerableTicks(220)
|
||||
{
|
||||
SetMaxHealth(300);
|
||||
SetHealth(GetMaxHealth() / 3);
|
||||
}
|
||||
|
||||
|
||||
@@ -30,18 +31,6 @@ bool cWither::IsArmored(void) const
|
||||
|
||||
|
||||
|
||||
bool cWither::Initialize(cWorld & a_World)
|
||||
{
|
||||
// Set health before BroadcastSpawnEntity()
|
||||
SetHealth(GetMaxHealth() / 3);
|
||||
|
||||
return super::Initialize(a_World);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
bool cWither::DoTakeDamage(TakeDamageInfo & a_TDI)
|
||||
{
|
||||
if (a_TDI.DamageType == dtDrowning)
|
||||
|
||||
Reference in New Issue
Block a user