Do not ack msg NULL
For example F-DDrace sends vital chunks with msg id 0 Those are some ddnet uuid extension thingy But the server does not keep feeding if we ack those
This commit is contained in:
parent
0e8310948b
commit
aadb67f39c
|
@ -436,7 +436,7 @@ class TeeworldsClient
|
|||
end
|
||||
chunks = BigChungusTheChunkGetter.get_chunks(data)
|
||||
chunks.each do |chunk|
|
||||
if chunk.flags_vital && !chunk.flags_resend
|
||||
if chunk.flags_vital && !chunk.flags_resend && chunk.msg != NETMSG_NULL
|
||||
@netbase.ack = (@netbase.ack + 1) % NET_MAX_SEQUENCE
|
||||
puts "got ack: #{@netbase.ack}" if @verbose
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue