mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-17 20:10:23 +03:00
clang-tidy: fix many warnings
This commit is contained in:
@@ -119,9 +119,9 @@ void ServerSideNetworkHandler::handle(const RakNet::RakNetGUID& guid, LoginPacke
|
||||
sgp.m_version = 2;
|
||||
sgp.m_time = m_pLevel->getTime();
|
||||
|
||||
RakNet::BitStream sgpbs;
|
||||
sgp.write(&sgpbs);
|
||||
m_pRakNetPeer->Send(&sgpbs, HIGH_PRIORITY, RELIABLE_ORDERED, 0, guid, false);
|
||||
RakNet::BitStream *sgpbs;
|
||||
sgp.write(sgpbs);
|
||||
m_pRakNetPeer->Send(sgpbs, HIGH_PRIORITY, RELIABLE_ORDERED, 0, guid, false);
|
||||
|
||||
// send the connecting player info about all other players in the world
|
||||
for (int i = 0; i < int(m_pLevel->m_players.size()); i++)
|
||||
|
||||
@@ -60,7 +60,7 @@ void LevelDataPacket::write(RakNet::BitStream* pbs)
|
||||
|
||||
if (pCompressedData)
|
||||
{
|
||||
float ratio = 100.0f * float(compSize) / float(uncompSize);
|
||||
//float ratio = 100.0f * float(compSize) / float(uncompSize);
|
||||
//LOG_I("Compression ratio: %.2f (%d comp, %d uncomp)", ratio, int(compSize), int(uncompSize));
|
||||
|
||||
int cs2 = int(compSize), us2 = int(uncompSize);
|
||||
|
||||
Reference in New Issue
Block a user