Avoid not needed too oftent send update data, cleanups. by SilverIce
--HG-- branch : trunk
This commit is contained in:
@@ -568,12 +568,12 @@ void WorldSession::HandleSellItemOpcode( WorldPacket & recv_data )
|
||||
pItem->SetCount( pItem->GetCount() - count );
|
||||
_player->ItemRemovedQuestCheck( pItem->GetEntry(), count );
|
||||
if( _player->IsInWorld() )
|
||||
pItem->SendUpdateToPlayer( _player );
|
||||
pItem->SendCreateUpdateToPlayer( _player );
|
||||
pItem->SetState(ITEM_CHANGED, _player);
|
||||
|
||||
_player->AddItemToBuyBackSlot( pNewItem );
|
||||
if( _player->IsInWorld() )
|
||||
pNewItem->SendUpdateToPlayer( _player );
|
||||
pNewItem->SendCreateUpdateToPlayer( _player );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user