mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 00:48:56 +01:00
Core/Misc: Random changes here and there to minimize differences with 4.3.4 branch
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user