Skip to content

Commit c297a75

Browse files
committedMay 16, 2015
Fix build since last commit
Also rename method to better match what it does.
1 parent 8dbf683 commit c297a75

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
 

Diff for: ‎src/clientiface.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ class RemoteClient
260260
m_version_minor(0),
261261
m_version_patch(0),
262262
m_full_version("unknown"),
263-
m_supported_compressions(0),
263+
m_deployed_compression(0),
264264
m_connection_time(getTime(PRECISION_SECONDS))
265265
{
266266
}
@@ -337,8 +337,8 @@ class RemoteClient
337337
void setPendingSerializationVersion(u8 version)
338338
{ m_pending_serialization_version = version; }
339339

340-
void setSupportedCompressionModes(u16 byteFlag)
341-
{ m_supported_compressions = byteFlag; }
340+
void setDeployedCompressionMode(u16 byteFlag)
341+
{ m_deployed_compression = byteFlag; }
342342

343343
void confirmSerializationVersion()
344344
{ serialization_version = m_pending_serialization_version; }
@@ -416,7 +416,7 @@ class RemoteClient
416416

417417
std::string m_full_version;
418418

419-
u16 m_supported_compressions;
419+
u16 m_deployed_compression;
420420

421421
/*
422422
time this client was created

Diff for: ‎src/network/serverpackethandler.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ void Server::handleCommand_Init(NetworkPacket* pkt)
281281
Send(&resp_pkt);
282282

283283
client->allowed_auth_mechs = auth_mechs;
284-
client->setSupportedCompressionModes(compression_modes);
284+
client->setDeployedCompressionMode(depl_compress_mode);
285285

286286
m_clients.event(pkt->getPeerId(), CSE_Hello);
287287
}

0 commit comments

Comments
 (0)
Please sign in to comment.