From dff5cb049f221e474e8f4339bc3df8cb9b01e944 Mon Sep 17 00:00:00 2001 From: Sryder Date: Sat, 2 Feb 2019 21:53:27 +0000 Subject: [PATCH] rename PT_WIPETIME to PT_BASICKEEPALIVE to be more obvious what it does --- src/d_clisrv.c | 6 +++--- src/d_clisrv.h | 2 +- src/d_net.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/d_clisrv.c b/src/d_clisrv.c index 71fdf6fb..961c1e59 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -4083,7 +4083,7 @@ FILESTAMP else if (resynch_score[node]) --resynch_score[node]; break; - case PT_WIPETIME: + case PT_BASICKEEPALIVE: if (client) break; @@ -4601,11 +4601,11 @@ static INT16 Consistancy(void) return (INT16)(ret & 0xFFFF); } -// confusing, but this DOESN'T send PT_NODEKEEPALIVE, it sends PT_WIPETIME +// confusing, but this DOESN'T send PT_NODEKEEPALIVE, it sends PT_BASICKEEPALIVE // used during wipes to tell the server that a node is still connected static void CL_SendClientKeepAlive(void) { - netbuffer->packettype = PT_WIPETIME; + netbuffer->packettype = PT_BASICKEEPALIVE; HSendPacket(servernode, false, 0, 0); } diff --git a/src/d_clisrv.h b/src/d_clisrv.h index af507739..62bd8bc1 100644 --- a/src/d_clisrv.h +++ b/src/d_clisrv.h @@ -71,7 +71,7 @@ typedef enum PT_CLIENT3MIS, PT_CLIENT4CMD, // 4P PT_CLIENT4MIS, - PT_WIPETIME, // Keep the network alive during wipes, as tics aren't advanced and NetUpdate isn't called + PT_BASICKEEPALIVE,// Keep the network alive during wipes, as tics aren't advanced and NetUpdate isn't called PT_CANFAIL, // This is kind of a priority. Anything bigger than CANFAIL // allows HSendPacket(*, true, *, *) to return false. diff --git a/src/d_net.c b/src/d_net.c index 7c8fc956..7e16297b 100644 --- a/src/d_net.c +++ b/src/d_net.c @@ -903,7 +903,7 @@ static void DebugPrintpacket(const char *header) (UINT32)ExpandTics(netbuffer->u.clientpak.client_tic), (UINT32)ExpandTics (netbuffer->u.clientpak.resendfrom)); break; - case PT_WIPETIME: + case PT_BASICKEEPALIVE: fprintf(debugfile, " wipetime\n"); break; case PT_TEXTCMD: