mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
Some fixes.
This commit is contained in:
parent
94fdc7e37e
commit
fdc20af337
14 changed files with 99 additions and 56 deletions
|
|
@ -1444,10 +1444,9 @@ bool Player::BuildEnumData( QueryResult * result, WorldPacket * p_data )
|
|||
char_flags |= CHARACTER_FLAG_DECLINED;
|
||||
|
||||
*p_data << uint32(char_flags); // character flags
|
||||
// character customize (flags?)
|
||||
// character customize flags
|
||||
*p_data << uint32(atLoginFlags & AT_LOGIN_CUSTOMIZE ? 1 : 0);// 0x00010000 - faction change
|
||||
*p_data << uint8(1); // unknown
|
||||
*p_data << uint8(0); // 3.2
|
||||
|
||||
// Pets info
|
||||
{
|
||||
|
|
@ -4236,17 +4235,17 @@ void Player::CreateCorpse()
|
|||
corpse->SetUInt32Value( CORPSE_FIELD_GUILD, GetGuildId() );
|
||||
|
||||
uint32 iDisplayID;
|
||||
uint16 iIventoryType;
|
||||
uint32 iIventoryType;
|
||||
uint32 _cfi;
|
||||
for (int i = 0; i < EQUIPMENT_SLOT_END; ++i)
|
||||
{
|
||||
if(m_items[i])
|
||||
{
|
||||
iDisplayID = m_items[i]->GetProto()->DisplayInfoID;
|
||||
iIventoryType = (uint16)m_items[i]->GetProto()->InventoryType;
|
||||
iIventoryType = m_items[i]->GetProto()->InventoryType;
|
||||
|
||||
_cfi = (uint16(iDisplayID)) | (iIventoryType)<< 24;
|
||||
corpse->SetUInt32Value(CORPSE_FIELD_ITEM + i,_cfi);
|
||||
_cfi = iDisplayID | (iIventoryType << 24);
|
||||
corpse->SetUInt32Value(CORPSE_FIELD_ITEM + i, _cfi);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue