NetPlay: Introduce constant for peer timeout

This commit is contained in:
Techjar
2022-03-15 01:26:55 -04:00
parent b1122ec94f
commit 302dedbd24
3 changed files with 5 additions and 3 deletions

View File

@ -417,7 +417,7 @@ ConnectionError NetPlayServer::OnConnect(ENetPeer* socket, sf::Packet& rpac)
return ConnectionError::NameTooLong;
// Extend reliable traffic timeout
enet_peer_timeout(socket, 0, 30000, 30000);
enet_peer_timeout(socket, 0, PEER_TIMEOUT, PEER_TIMEOUT);
// cause pings to be updated
m_update_pings = true;