NetPlay: Introduce constant for peer timeout

This commit is contained in:
Techjar committed 2022-03-15 01:26:55 -04:00
1 parent b1122ec94f
commit 302dedbd24
3 files changed
+5 -3

No files matched your search

+1 -1
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;