mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-27 14:58:32 +00:00
TraversalClient: Use u32 instead of enet_uint32
Lessens the dependence on the enet library (and we really don't need to rely on a third-party library for a 32-bit integer type)
This commit is contained in:
parent
f1e92a1eae
commit
c23a998f9d
2 changed files with 4 additions and 4 deletions
|
@ -243,7 +243,7 @@ void TraversalClient::ResendPacket(OutgoingTraversalPacketInfo* info)
|
|||
|
||||
void TraversalClient::HandleResends()
|
||||
{
|
||||
enet_uint32 now = enet_time_get();
|
||||
const u32 now = enet_time_get();
|
||||
for (auto& tpi : m_OutgoingTraversalPackets)
|
||||
{
|
||||
if (now - tpi.sendTime >= (u32)(300 * tpi.tries))
|
||||
|
@ -265,7 +265,7 @@ void TraversalClient::HandleResends()
|
|||
|
||||
void TraversalClient::HandlePing()
|
||||
{
|
||||
enet_uint32 now = enet_time_get();
|
||||
const u32 now = enet_time_get();
|
||||
if (m_State == Connected && now - m_PingTime >= 500)
|
||||
{
|
||||
TraversalPacket ping = {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue