minor change to destructable buildings.
--HG-- branch : trunk
This commit is contained in:
1 parent
72de3dd6c4
commit
b9a2bd24f7
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user