1
0
Fork 0

Add comments to CanTakeResultItem()

This commit is contained in:
Howaner 2014-05-05 15:49:56 +02:00
parent c162d69e7b
commit f2617d0683
1 changed files with 5 additions and 5 deletions

View File

@ -828,11 +828,11 @@ bool cSlotAreaAnvil::CanTakeResultItem(cPlayer & a_Player)
{
return (
(
a_Player.IsGameModeCreative()
|| a_Player.GetXpLevel() >= m_MaximumCost
)
&& !GetSlot(2, a_Player)->IsEmpty()
&& m_MaximumCost > 0
a_Player.IsGameModeCreative() || // Is the player in gamemode?
(a_Player.GetXpLevel() >= m_MaximumCost) // or the player have enough exp?
) &&
(!GetSlot(2, a_Player)->IsEmpty()) && // Is a item in the result slot?
(m_MaximumCost > 0) // And: Is m_MaximumCost higher than 0?
);
}