Unpack UDP_frame_info
This commit is contained in:
parent
f1970ad129
commit
c7b161cf2d
|
@ -127,13 +127,13 @@ struct UDP_sequence_packet : prohibit_void_ptr<UDP_sequence_packet>
|
|||
};
|
||||
|
||||
// player position packet structure
|
||||
struct UDP_frame_info
|
||||
struct UDP_frame_info : prohibit_void_ptr<UDP_frame_info>
|
||||
{
|
||||
ubyte type;
|
||||
ubyte Player_num;
|
||||
ubyte connected;
|
||||
quaternionpos qpp;
|
||||
} __pack__;
|
||||
};
|
||||
|
||||
// packet structure for multi-buffer
|
||||
struct UDP_mdata_info
|
||||
|
|
|
@ -4759,7 +4759,7 @@ void net_udp_process_pdata ( ubyte *data, int data_len, struct _sockaddr sender_
|
|||
|
||||
len++;
|
||||
|
||||
memset(&pd, 0, sizeof(UDP_frame_info));
|
||||
pd = {};
|
||||
|
||||
if (data_len > sizeof(UDP_frame_info))
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue