From 490778cdab3b85b38c484fe87d41017af864de22 Mon Sep 17 00:00:00 2001 From: Louis-Antoine Date: Fri, 13 Jan 2017 22:34:16 +0100 Subject: [PATCH] Why does DD exist --- src/d_clisrv.h | 1 - src/d_net.c | 7 ++----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/d_clisrv.h b/src/d_clisrv.h index 5896a1bf6..eedff8d7c 100644 --- a/src/d_clisrv.h +++ b/src/d_clisrv.h @@ -83,7 +83,6 @@ void Command_Droprate(void); #ifdef DEBUGMODE void Command_Numnodes(void); #endif -boolean NodeClosing(INT32 node); #if defined(_MSC_VER) #pragma pack(1) diff --git a/src/d_net.c b/src/d_net.c index d2a2b318b..2b4953034 100644 --- a/src/d_net.c +++ b/src/d_net.c @@ -274,6 +274,7 @@ static boolean GetFreeAcknum(UINT8 *freeack, boolean lowtimer) I_Error("Connection lost\n"); return false; } +#endif /** Counts how many acks are free * @@ -307,6 +308,7 @@ 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) { @@ -998,11 +1000,6 @@ static boolean ShouldDropPacket(void) } #endif -boolean NodeClosing(INT32 node) -{ - return ((nodes[node].flags) & NF_CLOSE) != 0; -} - // // HSendPacket //