Core/PacketIO: Update structures of many packets sent during the login process

This commit is contained in:
Shauren
2012-07-11 23:28:40 +02:00
parent 947dbcbabc
commit a2b1cf66ca
4 changed files with 87 additions and 73 deletions

View File

@@ -197,23 +197,23 @@ void ReputationMgr::SendState(FactionState const* faction)
void ReputationMgr::SendInitialReputations()
{
WorldPacket data(SMSG_INITIALIZE_FACTIONS, (4+128*5));
data << uint32 (0x00000080);
WorldPacket data(SMSG_INITIALIZE_FACTIONS, (4+256*5));
data << uint32(256); // 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;
@@ -221,7 +221,7 @@ void ReputationMgr::SendInitialReputations()
}
// fill in absent fields
for (; a != 128; a++)
for (; a != 256; ++a)
{
data << uint8 (0x00);
data << uint32 (0x00000000);