Use enumerated_array for UDP_mdata_store::pkt_timestamp

This commit is contained in:
Kp 2022-07-16 15:26:12 +00:00
parent efecd3507f
commit bfd83c6702

View file

@ -16,6 +16,7 @@
#include "pack.h"
#include "ntstring.h"
#include "fwd-window.h"
#include "d_array.h"
#include "d_bitset.h"
#include <array>
@ -164,7 +165,7 @@ struct UDP_mdata_info : prohibit_void_ptr<UDP_mdata_info>
struct UDP_mdata_store : prohibit_void_ptr<UDP_mdata_store>
{
fix64 pkt_initial_timestamp; // initial timestamp to see if packet is outdated
std::array<fix64, MAX_PLAYERS> pkt_timestamp; // Packet timestamp
enumerated_array<fix64, MAX_PLAYERS, playernum_t> pkt_timestamp; // Packet timestamp
std::array<uint32_t, MAX_PLAYERS> pkt_num; // Packet number
sbyte used;
ubyte Player_num; // sender of this packet