parse CMSG_CHANGE_SEATS_ON_CONTROLLED_VEHICLE opcode in proper way
--HG-- branch : trunk
This commit is contained in:
1 parent
b8ea34958c
commit
0451e45e06
2 files changed
+29
-32
No files matched your search
+1
-10
@@ -3252,18 +3252,9 @@ void Unit::_UpdateSpells( uint32 time )
|
||||
++i;
|
||||
}
|
||||
|
||||
WorldPacket auras;
|
||||
for (VisibleAuraMap::iterator itr = m_visibleAuras.begin(); itr != m_visibleAuras.end(); ++itr)
|
||||
if (itr->second->IsNeedClientUpdate())
|
||||
itr->second->ConstructAuraInfo(auras);
|
||||
|
||||
if(auras.wpos())
|
||||
{
|
||||
WorldPacket data(SMSG_AURA_UPDATE, GetPackGUID().size() + auras.wpos());
|
||||
data.append(GetPackGUID());
|
||||
data.append(auras);
|
||||
SendMessageToSet(&data, true);
|
||||
}
|
||||
itr->second->ClientUpdate();
|
||||
|
||||
_DeleteRemovedAuras();
|
||||
|
||||
|
||||
Reference in new issue
Block a user