minor change to destructable buildings.
--HG-- branch : trunk
This commit is contained in:
@@ -1626,7 +1626,7 @@ void GameObject::TakenDamage(uint32 damage, Unit *who)
|
|||||||
if (m_goValue->building.health <= m_goInfo->building.damagedNumHits)
|
if (m_goValue->building.health <= m_goInfo->building.damagedNumHits)
|
||||||
{
|
{
|
||||||
if (!m_goInfo->building.destroyedDisplayId)
|
if (!m_goInfo->building.destroyedDisplayId)
|
||||||
m_goValue->building.health = 0;
|
m_goValue->building.health = m_goInfo->building.damagedNumHits;
|
||||||
else if (!m_goValue->building.health)
|
else if (!m_goValue->building.health)
|
||||||
m_goValue->building.health = 1;
|
m_goValue->building.health = 1;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user