aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRogier-5 <rogier777@gmail.com>2016-12-29 13:44:47 +0100
committerNer'zhul <nerzhul@users.noreply.github.com>2016-12-29 13:44:47 +0100
commitabd68d3466b7f2155cf0f1c4172a254f10c1f02e (patch)
tree1352a74ff53509bfb2f81ba1f740887aa8b129b9 /src
parente509ead680cc1c0bde35dfd467d18b8288cc1b86 (diff)
downloadminetest-abd68d3466b7f2155cf0f1c4172a254f10c1f02e.tar.gz
minetest-abd68d3466b7f2155cf0f1c4172a254f10c1f02e.tar.bz2
minetest-abd68d3466b7f2155cf0f1c4172a254f10c1f02e.zip
Use the outgoing split sequence number for every outgoing packet (#4864)
(instead of the last incoming sequence number...) Fixes #4848
Diffstat (limited to 'src')
-rw-r--r--src/network/connection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/connection.cpp b/src/network/connection.cpp
index b711cae11..e11b4a953 100644
--- a/src/network/connection.cpp
+++ b/src/network/connection.cpp
@@ -1237,7 +1237,7 @@ void UDPPeer::RunCommandQueues(
u16 UDPPeer::getNextSplitSequenceNumber(u8 channel)
{
assert(channel < CHANNEL_COUNT); // Pre-condition
- return channels[channel].readNextIncomingSeqNum();
+ return channels[channel].readNextSplitSeqNum();
}
void UDPPeer::setNextSplitSequenceNumber(u8 channel, u16 seqnum)