diff options
author | Mattes D <github@xoft.cz> | 2019-09-09 18:22:37 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2019-09-10 09:45:28 +0200 |
commit | 2c804dd34a58ff9702bd1ab2cab30f6a61503638 (patch) | |
tree | 16b3052c65f65231898205d670c52660f79b661f /src/Protocol/ProtocolRecognizer.h | |
parent | ChunkGenerator: Changed to use cChunkCoords. (diff) | |
download | cuberite-2c804dd34a58ff9702bd1ab2cab30f6a61503638.tar cuberite-2c804dd34a58ff9702bd1ab2cab30f6a61503638.tar.gz cuberite-2c804dd34a58ff9702bd1ab2cab30f6a61503638.tar.bz2 cuberite-2c804dd34a58ff9702bd1ab2cab30f6a61503638.tar.lz cuberite-2c804dd34a58ff9702bd1ab2cab30f6a61503638.tar.xz cuberite-2c804dd34a58ff9702bd1ab2cab30f6a61503638.tar.zst cuberite-2c804dd34a58ff9702bd1ab2cab30f6a61503638.zip |
Diffstat (limited to 'src/Protocol/ProtocolRecognizer.h')
-rw-r--r-- | src/Protocol/ProtocolRecognizer.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/Protocol/ProtocolRecognizer.h b/src/Protocol/ProtocolRecognizer.h index a6ae74c75..59cdfa6de 100644 --- a/src/Protocol/ProtocolRecognizer.h +++ b/src/Protocol/ProtocolRecognizer.h @@ -158,12 +158,8 @@ protected: /** Is a server list ping for an unrecognized version currently occuring? */ bool m_InPingForUnrecognizedVersion; - /** GetPacketId is implemented in each protocol version class */ - virtual UInt32 GetPacketId(eOutgoingPackets a_Packet) override - { - ASSERT(!"cProtocolRecognizer::GetPacketId should never be called! Something is horribly wrong! (this method being called implies that someone other than a Protocol-derived class is calling GetPacketId)"); - return 0; - } + /** Returns the protocol-specific packet ID given the protocol-agnostic packet enum. */ + virtual UInt32 GetPacketID(ePacketType a_PacketType) override; // Packet handlers while in status state (m_InPingForUnrecognizedVersion == true) void HandlePacketStatusRequest(); |