Core/Misc: Tweaked ThreatContainer internals
(and many cosmetic changes here and there)
This commit is contained in:
1 parent
6d55ac8c58
commit
876ad50dcd
53 files changed
+312
-426
No files matched your search
@@ -17378,11 +17378,11 @@ void Unit::SendThreatListUpdate()
|
||||
WorldPacket data(SMSG_THREAT_UPDATE, 8 + count * 8);
|
||||
data.append(GetPackGUID());
|
||||
data << uint32(count);
|
||||
std::list<HostileReference*>& tlist = getThreatManager().getThreatList();
|
||||
for (std::list<HostileReference*>::const_iterator itr = tlist.begin(); itr != tlist.end(); ++itr)
|
||||
ThreatContainer::StorageType const &tlist = getThreatManager().getThreatList();
|
||||
for (ThreatContainer::StorageType::const_iterator itr = tlist.begin(); itr != tlist.end(); ++itr)
|
||||
{
|
||||
data.appendPackGUID((*itr)->getUnitGuid());
|
||||
data << uint32((*itr)->getThreat() * 100);
|
||||
data << uint32((*itr)->getThreat()*100);
|
||||
}
|
||||
SendMessageToSet(&data, false);
|
||||
}
|
||||
@@ -17399,8 +17399,8 @@ void Unit::SendChangeCurrentVictimOpcode(HostileReference* pHostileReference)
|
||||
data.append(GetPackGUID());
|
||||
data.appendPackGUID(pHostileReference->getUnitGuid());
|
||||
data << uint32(count);
|
||||
std::list<HostileReference*>& tlist = getThreatManager().getThreatList();
|
||||
for (std::list<HostileReference*>::const_iterator itr = tlist.begin(); itr != tlist.end(); ++itr)
|
||||
ThreatContainer::StorageType const &tlist = getThreatManager().getThreatList();
|
||||
for (ThreatContainer::StorageType::const_iterator itr = tlist.begin(); itr != tlist.end(); ++itr)
|
||||
{
|
||||
data.appendPackGUID((*itr)->getUnitGuid());
|
||||
data << uint32((*itr)->getThreat());
|
||||
|
||||
Reference in new issue
Block a user