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:
ChillerDragon 2022-11-24 12:28:42 +01:00
parent 0e8310948b
commit aadb67f39c

View file

@ -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