diff --git a/include/CommonLib/InternalConstants.hpp b/include/CommonLib/InternalConstants.hpp index d758a7d..09cc6d4 100644 --- a/include/CommonLib/InternalConstants.hpp +++ b/include/CommonLib/InternalConstants.hpp @@ -16,7 +16,7 @@ namespace tsom::Constants { // Network constants constexpr Nz::UInt32 NetworkChannelCount = 3; - constexpr Nz::UInt32 ProtocolRequiredClientVersion = BuildVersion(0, 5, 0); + constexpr Nz::UInt32 ProtocolRequiredClientVersion = BuildVersion(0, 6, 0); constexpr Nz::Time TickDuration = Nz::Time::TickDuration(60); // Serialization constants diff --git a/src/CommonLib/Protocol/Packets.cpp b/src/CommonLib/Protocol/Packets.cpp index f90d729..8d55bd1 100644 --- a/src/CommonLib/Protocol/Packets.cpp +++ b/src/CommonLib/Protocol/Packets.cpp @@ -79,14 +79,18 @@ namespace tsom serializer &= shipInputs.moveBackward; serializer &= shipInputs.moveLeft; serializer &= shipInputs.moveRight; - serializer &= shipInputs.moveUp; - serializer &= shipInputs.moveDown; serializer &= shipInputs.rollLeft; serializer &= shipInputs.rollRight; - serializer &= shipInputs.stabilize; serializer &= shipInputs.pitch; serializer &= shipInputs.yaw; + + if (serializer.GetProtocolVersion() >= BuildVersion(0, 6, 1)) + { + serializer &= shipInputs.moveUp; + serializer &= shipInputs.moveDown; + serializer &= shipInputs.stabilize; + } } }); }