reverted commit 81
fixed updatetotal on held items
This commit is contained in:
parent
87966abb3f
commit
b2ab540a59
2 changed files with 3 additions and 1 deletions
|
|
@ -2616,6 +2616,8 @@ namespace Server
|
||||||
( m_Parent as Item ).UpdateTotal( sender, type, delta );
|
( m_Parent as Item ).UpdateTotal( sender, type, delta );
|
||||||
else if ( m_Parent is Mobile )
|
else if ( m_Parent is Mobile )
|
||||||
( m_Parent as Mobile ).UpdateTotal( sender, type, delta );
|
( m_Parent as Mobile ).UpdateTotal( sender, type, delta );
|
||||||
|
else if ( this.HeldBy != null )
|
||||||
|
( this.HeldBy as Mobile ).UpdateTotal( sender, type, delta );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -115,7 +115,7 @@ namespace Server.Items
|
||||||
maxWeight = ((Container)Parent).MaxWeight;
|
maxWeight = ((Container)Parent).MaxWeight;
|
||||||
|
|
||||||
if ( maxWeight > 0 )
|
if ( maxWeight > 0 )
|
||||||
maxWeight = Math.Min( maxWeight, DefaultMaxWeight );
|
maxWeight = Math.Max( maxWeight, DefaultMaxWeight );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue