mirror of
https://github.com/mangosfour/server.git
synced 2025-12-25 22:37:04 +00:00
[7730] Some optimizantion and code style.
Signed-off-by: AlexDereka <dereka.alex@gmail.com>
This commit is contained in:
parent
a4373c887d
commit
8144f30199
69 changed files with 536 additions and 536 deletions
|
|
@ -277,7 +277,7 @@ void WorldSession::HandlePetitionShowSignOpcode(WorldPacket & recv_data)
|
|||
data << petitionguid_low; // guild guid (in mangos always same as GUID_LOPART(petitionguid)
|
||||
data << signs; // sign's count
|
||||
|
||||
for(uint8 i = 1; i <= signs; i++)
|
||||
for(uint8 i = 1; i <= signs; ++i)
|
||||
{
|
||||
Field *fields2 = result->Fetch();
|
||||
uint64 plguid = fields2[0].GetUInt64();
|
||||
|
|
@ -688,7 +688,7 @@ void WorldSession::HandleOfferPetitionOpcode(WorldPacket & recv_data)
|
|||
data << GUID_LOPART(petitionguid); // guild guid (in mangos always same as GUID_LOPART(petition guid)
|
||||
data << signs; // sign's count
|
||||
|
||||
for(uint8 i = 1; i <= signs; i++)
|
||||
for(uint8 i = 1; i <= signs; ++i)
|
||||
{
|
||||
Field *fields2 = result->Fetch();
|
||||
plguid = fields2[0].GetUInt64();
|
||||
|
|
@ -957,7 +957,7 @@ void WorldSession::SendPetitionShowList(uint64 guid)
|
|||
data << uint32(5); // unknown
|
||||
data << uint32(5); // required signs?
|
||||
}
|
||||
//for(uint8 i = 0; i < count; i++)
|
||||
//for(uint8 i = 0; i < count; ++i)
|
||||
//{
|
||||
// data << uint32(i); // index
|
||||
// data << uint32(GUILD_CHARTER); // charter entry
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue