Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix build since last commit
Also rename method to better match what it does.
  • Loading branch information
est31 committed May 16, 2015
1 parent 8dbf683 commit c297a75
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/clientiface.h
Expand Up @@ -260,7 +260,7 @@ class RemoteClient
m_version_minor(0),
m_version_patch(0),
m_full_version("unknown"),
m_supported_compressions(0),
m_deployed_compression(0),
m_connection_time(getTime(PRECISION_SECONDS))
{
}
Expand Down Expand Up @@ -337,8 +337,8 @@ class RemoteClient
void setPendingSerializationVersion(u8 version)
{ m_pending_serialization_version = version; }

void setSupportedCompressionModes(u16 byteFlag)
{ m_supported_compressions = byteFlag; }
void setDeployedCompressionMode(u16 byteFlag)
{ m_deployed_compression = byteFlag; }

void confirmSerializationVersion()
{ serialization_version = m_pending_serialization_version; }
Expand Down Expand Up @@ -416,7 +416,7 @@ class RemoteClient

std::string m_full_version;

u16 m_supported_compressions;
u16 m_deployed_compression;

/*
time this client was created
Expand Down
2 changes: 1 addition & 1 deletion src/network/serverpackethandler.cpp
Expand Up @@ -281,7 +281,7 @@ void Server::handleCommand_Init(NetworkPacket* pkt)
Send(&resp_pkt);

client->allowed_auth_mechs = auth_mechs;
client->setSupportedCompressionModes(compression_modes);
client->setDeployedCompressionMode(depl_compress_mode);

m_clients.event(pkt->getPeerId(), CSE_Hello);
}
Expand Down

0 comments on commit c297a75

Please sign in to comment.