[10401] Some code style cleanups.

This commit is contained in:
VladimirMangos 2010-08-22 21:58:53 +04:00
parent 82314c364a
commit c545392f2e
3 changed files with 37 additions and 37 deletions

View file

@ -317,7 +317,7 @@ void WorldSession::SendPetitionQueryOpcode(ObjectGuid petitionguid)
" type "
"FROM petition WHERE petitionguid = '%u'", petitionLowGuid, petitionLowGuid);
if(result)
if (result)
{
Field* fields = result->Fetch();
ownerguid = ObjectGuid(HIGHGUID_PLAYER, fields[0].GetUInt32());
@ -333,11 +333,11 @@ void WorldSession::SendPetitionQueryOpcode(ObjectGuid petitionguid)
}
WorldPacket data(SMSG_PETITION_QUERY_RESPONSE, (4+8+name.size()+1+1+4*12+2+10));
data << uint32(petitionLowGuid); // guild/team guid (in mangos always same as GUID_LOPART(petition guid)
data << uint32(petitionLowGuid); // guild/team guid (in mangos always same as GUID_LOPART(petition guid)
data << ownerguid; // charter owner guid
data << name; // name (guild/arena team)
data << uint8(0); // some string
if(type == 9)
if (type == 9)
{
data << uint32(9);
data << uint32(9);
@ -363,7 +363,7 @@ void WorldSession::SendPetitionQueryOpcode(ObjectGuid petitionguid)
data << uint32(0); // 14
if(type == 9)
if (type == 9)
data << uint32(0); // 15 0 - guild, 1 - arena team
else
data << uint32(1);