Inventory code cleanup, players can now see each other's armor
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1493 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -58,7 +58,7 @@ short cItem::GetMaxDamage(void) const
|
||||
|
||||
|
||||
|
||||
bool cItem::DamageItem(void)
|
||||
bool cItem::DamageItem(short a_Amount)
|
||||
{
|
||||
short MaxDamage = GetMaxDamage();
|
||||
if (MaxDamage == 0)
|
||||
@@ -67,7 +67,7 @@ bool cItem::DamageItem(void)
|
||||
return false;
|
||||
}
|
||||
|
||||
m_ItemDamage++;
|
||||
m_ItemDamage += a_Amount;
|
||||
return (m_ItemDamage >= MaxDamage);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user