Core/Misc: Random changes here and there to minimize differences with 4.3.4 branch

This commit is contained in:
Spp
2012-11-27 13:02:04 +01:00
parent 2251d1bfae
commit e954498560
94 changed files with 976 additions and 951 deletions

View File

@@ -198,23 +198,24 @@ void ReputationMgr::SendState(FactionState const* faction)
void ReputationMgr::SendInitialReputations()
{
WorldPacket data(SMSG_INITIALIZE_FACTIONS, (4+128*5));
data << uint32 (0x00000080);
uint8 count = 128;
WorldPacket data(SMSG_INITIALIZE_FACTIONS, 4 + count * 5);
data << uint32(count);
RepListID a = 0;
for (FactionStateList::iterator itr = _factions.begin(); itr != _factions.end(); ++itr)
{
// fill in absent fields
for (; a != itr->first; a++)
for (; a != itr->first; ++a)
{
data << uint8 (0x00);
data << uint32 (0x00000000);
data << uint8(0);
data << uint32(0);
}
// fill in encountered data
data << uint8 (itr->second.Flags);
data << uint32 (itr->second.Standing);
data << uint8(itr->second.Flags);
data << uint32(itr->second.Standing);
itr->second.needSend = false;
@@ -222,10 +223,10 @@ void ReputationMgr::SendInitialReputations()
}
// fill in absent fields
for (; a != 128; a++)
for (; a != count; ++a)
{
data << uint8 (0x00);
data << uint32 (0x00000000);
data << uint8(0);
data << uint32(0);
}
_player->SendDirectMessage(&data);