minor change to destructable buildings.

--HG--
branch : trunk
This commit is contained in:
Supabad
2010-06-28 18:45:54 +02:00
parent 72de3dd6c4
commit b9a2bd24f7

View File

@@ -1626,7 +1626,7 @@ void GameObject::TakenDamage(uint32 damage, Unit *who)
if (m_goValue->building.health <= m_goInfo->building.damagedNumHits)
{
if (!m_goInfo->building.destroyedDisplayId)
m_goValue->building.health = 0;
m_goValue->building.health = m_goInfo->building.damagedNumHits;
else if (!m_goValue->building.health)
m_goValue->building.health = 1;