Move net_udp_process_version_deny up
This allows the lower namespace{} block to change scope without changing the namespace of net_udp_process_version_deny.
This commit is contained in:
parent
5bb61f71b5
commit
3fb11cecf1
|
@ -950,6 +950,15 @@ static std::optional<upid> build_upid_from_untrusted(const uint8_t cmd)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void net_udp_process_version_deny(const upid_rspan<upid::version_deny> data, const _sockaddr &)
|
||||||
|
{
|
||||||
|
Netgame.protocol.udp.program_iver[0] = GET_INTEL_SHORT(&data[1]);
|
||||||
|
Netgame.protocol.udp.program_iver[1] = GET_INTEL_SHORT(&data[3]);
|
||||||
|
Netgame.protocol.udp.program_iver[2] = GET_INTEL_SHORT(&data[5]);
|
||||||
|
Netgame.protocol.udp.program_iver[3] = GET_INTEL_SHORT(&data[7]);
|
||||||
|
Netgame.protocol.udp.valid = -1;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2845,15 +2854,6 @@ void dispatch_table::send_endlevel_packet() const
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
static void net_udp_process_version_deny(const upid_rspan<upid::version_deny> data, const _sockaddr &)
|
|
||||||
{
|
|
||||||
Netgame.protocol.udp.program_iver[0] = GET_INTEL_SHORT(&data[1]);
|
|
||||||
Netgame.protocol.udp.program_iver[1] = GET_INTEL_SHORT(&data[3]);
|
|
||||||
Netgame.protocol.udp.program_iver[2] = GET_INTEL_SHORT(&data[5]);
|
|
||||||
Netgame.protocol.udp.program_iver[3] = GET_INTEL_SHORT(&data[7]);
|
|
||||||
Netgame.protocol.udp.valid = -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct game_info_light
|
struct game_info_light
|
||||||
{
|
{
|
||||||
std::array<uint8_t, upid_length<upid::game_info_lite>> buf;
|
std::array<uint8_t, upid_length<upid::game_info_lite>> buf;
|
||||||
|
|
Loading…
Reference in a new issue