diff --git a/proxyd/tbc/Proxy_Handlers.cpp b/proxyd/tbc/Proxy_Handlers.cpp index 71ad4a7..f1ef75b 100644 --- a/proxyd/tbc/Proxy_Handlers.cpp +++ b/proxyd/tbc/Proxy_Handlers.cpp @@ -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()); diff --git a/realmd/Realm_Socket.cpp b/realmd/Realm_Socket.cpp index a9436b8..a4fa764 100644 --- a/realmd/Realm_Socket.cpp +++ b/realmd/Realm_Socket.cpp @@ -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")) @@ -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;