part size = chunk num

This commit is contained in:
ChillerDragon 2022-11-17 11:19:31 +01:00
parent ac23f5911f
commit 45189d0217

View file

@ -166,8 +166,6 @@ class GameClient
# complete_size = 0
# data = nil
chunk_num = 0
# TODO: state check
if msg_id == NETMSG_SNAP
@ -178,7 +176,6 @@ class GameClient
unless msg_id == NETMSG_SNAPEMPTY
crc = u.get_int
part_size = u.get_int
chunk_num = u.get_int
end
snap_name = 'SNAP_INVALID'
@ -193,8 +190,8 @@ class GameClient
puts ">>> snap #{snap_name} (#{msg_id})"
puts " id=#{msg_id} game_tick=#{game_tick} delta_tick=#{delta_tick}"
puts " num_parts=#{num_parts} part=#{part} crc=#{crc} part_size=#{part_size}"
puts " chunk_num=#{chunk_num}"
puts "\n header:"
return if msg_id == NETMSG_SNAPSINGLE
header = []
notes = []