diff --git a/src/d_net.c b/src/d_net.c index 2b4953034..fae1ea311 100644 --- a/src/d_net.c +++ b/src/d_net.c @@ -274,7 +274,6 @@ static boolean GetFreeAcknum(UINT8 *freeack, boolean lowtimer) I_Error("Connection lost\n"); return false; } -#endif /** Counts how many acks are free * @@ -308,7 +307,6 @@ INT32 Net_GetFreeAcks(boolean urgent) return n; } -#ifndef NONET // Get a ack to send in the queue of this node static UINT8 GetAcktosend(INT32 node) { diff --git a/src/d_netfil.c b/src/d_netfil.c index 84e5e43e3..bf4e59878 100644 --- a/src/d_netfil.c +++ b/src/d_netfil.c @@ -662,7 +662,11 @@ void SV_FileSendTicker(void) { packetsent = cv_downloadspeed.value; // Don't send more packets than we have free acks +#ifndef NONET maxpacketsent = Net_GetFreeAcks(false) - 5; // Let 5 extra acks just in case +#else + maxpacketsent = 1; +#endif if (packetsent > maxpacketsent && maxpacketsent > 0) // Send at least one packet packetsent = maxpacketsent; }