Skip to content

Commit

Permalink
Little cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
thumsoul committed Apr 3, 2012
1 parent 6e2cfad commit 2b56abd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
3 changes: 0 additions & 3 deletions proxyd/tbc/Proxy_Handlers.cpp
Expand Up @@ -142,9 +142,6 @@ Proxy_Socket::account_retrieved(bool state)
return;
}




uint8 check_digest[SHA_DIGEST_LENGTH];
uint32 trailer = 0x00;
BN_hex2bn(&K, this->acct.sessionkey.c_str());
Expand Down
23 changes: 12 additions & 11 deletions realmd/Realm_Socket.cpp
Expand Up @@ -651,9 +651,9 @@ Realm_Socket::build_expansion_realm_packet()
if (i->second.build != this->client_build)
continue;

*pkt << (uint8) i->second.icon;
*pkt << (uint8)(i->second.allowedSecurityLevel > this->acct.gmlevel ? 1:0);
*pkt << (uint8) i->second.color;
*pkt << uint8(i->second.icon);
*pkt << uint8(i->second.allowedSecurityLevel > this->acct.gmlevel ? 1 : 0);
*pkt << uint8(i->second.color);
*pkt << i->second.name;

if(!i->second.address.compare(":0"))
Expand All @@ -662,20 +662,21 @@ Realm_Socket::build_expansion_realm_packet()
}
else
{
REALM_LOG("proxy: %s\n", i->second.address.c_str());
*pkt << i->second.address;
}

*pkt << (float)i->second.population;
*pkt << (uint8)this->realm_char_amount[i->first];
*pkt << (uint8) i->second.timezone;
*pkt << (uint8) 0x00;
*pkt << float(i->second.population);
*pkt << uint8(this->realm_char_amount[i->first]);
*pkt << uint8(i->second.timezone);
*pkt << uint8(0x00);
}
*pkt << (uint8) 0x10;
*pkt << (uint8) 0x00;
*pkt << uint8(0x10);
*pkt << uint8(0x00);

ByteBuffer *data = new ByteBuffer;
*data << (uint8)REALM_LIST;
*data << (uint16) pkt->size();
*data << uint8(REALM_LIST);
*data << uint16(pkt->size());
data->append(*pkt);
delete pkt;
return data;
Expand Down

0 comments on commit 2b56abd

Please sign in to comment.