]> git.localhorst.tv Git - blank.git/blobdiff - src/net/Packet.hpp
fixed old packet acks
[blank.git] / src / net / Packet.hpp
index c4a8ae350299ff111abfcd47cf5228e09679eb9e..87dececf9957f7c12ef960d59d6b0b7086ba802a 100644 (file)
@@ -26,7 +26,7 @@ struct Packet {
                // true if this contains an ack for given (remote) seq
                bool Acks(std::uint16_t) const noexcept;
                std::uint16_t AckBegin() const noexcept { return ack; }
-               std::uint16_t AckEnd() const noexcept { return ack + std::uint16_t(33); }
+               std::uint16_t AckEnd() const noexcept { return ack - std::uint16_t(33); }
        };
 
        struct Header {