Merge branch 'fade-timeout-fix' into 'master'

Temporary fix for the fade timeout

See merge request STJr/SRB2Internal!592
This commit is contained in:
Steel Titanium 2019-12-03 20:19:33 -05:00
commit 41210708e2

View file

@ -497,9 +497,9 @@ void Net_AckTicker(void)
node_t *node = &nodes[nodei]; node_t *node = &nodes[nodei];
if (ackpak[i].acknum && ackpak[i].senttime + NODETIMEOUT < I_GetTime()) if (ackpak[i].acknum && ackpak[i].senttime + NODETIMEOUT < I_GetTime())
{ {
if (ackpak[i].resentnum > 10 && (node->flags & NF_CLOSE)) if (ackpak[i].resentnum > 20 && (node->flags & NF_CLOSE))
{ {
DEBFILE(va("ack %d sent 10 times so connection is supposed lost: node %d\n", DEBFILE(va("ack %d sent 20 times so connection is supposed lost: node %d\n",
i, nodei)); i, nodei));
Net_CloseConnection(nodei | FORCECLOSE); Net_CloseConnection(nodei | FORCECLOSE);