mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Drop m_list_size from ReliablePacketBuffer
It's not required and, worse, can lead to bugs.
This commit is contained in:
parent
d7c10b66d3
commit
fc2f55d931
2 changed files with 21 additions and 20 deletions
|
@ -240,7 +240,7 @@ public:
|
|||
|
||||
BufferedPacket popFirst();
|
||||
BufferedPacket popSeqnum(u16 seqnum);
|
||||
void insert(BufferedPacket &p,u16 next_expected);
|
||||
void insert(BufferedPacket &p, u16 next_expected);
|
||||
|
||||
void incrementTimeouts(float dtime);
|
||||
std::list<BufferedPacket> getTimedOuts(float timeout,
|
||||
|
@ -257,7 +257,6 @@ private:
|
|||
RPBSearchResult findPacket(u16 seqnum);
|
||||
|
||||
std::list<BufferedPacket> m_list;
|
||||
u32 m_list_size = 0;
|
||||
|
||||
u16 m_oldest_non_answered_ack;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue