diff options
author | madmaxoft <github@xoft.cz> | 2013-10-23 11:06:39 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-10-23 11:06:39 +0200 |
commit | d3db97301b58f761b5754224d4dad4eff49cafbf (patch) | |
tree | 1938ac46dd48ea90b385e29dc1a322e5ee2b16c3 /source/Protocol/ProtocolRecognizer.cpp | |
parent | APIDump: member variables without a setter are considered constants. (diff) | |
download | cuberite-d3db97301b58f761b5754224d4dad4eff49cafbf.tar cuberite-d3db97301b58f761b5754224d4dad4eff49cafbf.tar.gz cuberite-d3db97301b58f761b5754224d4dad4eff49cafbf.tar.bz2 cuberite-d3db97301b58f761b5754224d4dad4eff49cafbf.tar.lz cuberite-d3db97301b58f761b5754224d4dad4eff49cafbf.tar.xz cuberite-d3db97301b58f761b5754224d4dad4eff49cafbf.tar.zst cuberite-d3db97301b58f761b5754224d4dad4eff49cafbf.zip |
Diffstat (limited to 'source/Protocol/ProtocolRecognizer.cpp')
-rw-r--r-- | source/Protocol/ProtocolRecognizer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/Protocol/ProtocolRecognizer.cpp b/source/Protocol/ProtocolRecognizer.cpp index fe99b22e1..ceada1944 100644 --- a/source/Protocol/ProtocolRecognizer.cpp +++ b/source/Protocol/ProtocolRecognizer.cpp @@ -727,7 +727,7 @@ bool cProtocolRecognizer::TryRecognizeProtocol(void) void cProtocolRecognizer::HandleServerPing(void) { AString Reply; - switch (cRoot::Get()->m_PrimaryServerVersion) + switch (cRoot::Get()->GetPrimaryServerVersion()) { case PROTO_VERSION_1_2_5: case PROTO_VERSION_1_3_2: @@ -771,8 +771,8 @@ void cProtocolRecognizer::HandleServerPing(void) Printf(MaxPlayers, "%d", cRoot::Get()->GetServer()->GetMaxPlayers()); AString ProtocolVersionNum; - Printf(ProtocolVersionNum, "%d", cRoot::Get()->m_PrimaryServerVersion); - AString ProtocolVersionTxt(GetVersionTextFromInt(cRoot::Get()->m_PrimaryServerVersion)); + Printf(ProtocolVersionNum, "%d", cRoot::Get()->GetPrimaryServerVersion()); + AString ProtocolVersionTxt(GetVersionTextFromInt(cRoot::Get()->GetPrimaryServerVersion())); // Cannot use Printf() because of in-string NUL bytes. Reply = cChatColor::Delimiter; |