rename PT_WIPETIME to PT_BASICKEEPALIVE to be more obvious what it does

This commit is contained in:
Sryder 2019-02-02 21:53:27 +00:00
parent 1bf584c079
commit dff5cb049f
3 changed files with 5 additions and 5 deletions

View file

@ -4083,7 +4083,7 @@ FILESTAMP
else if (resynch_score[node]) else if (resynch_score[node])
--resynch_score[node]; --resynch_score[node];
break; break;
case PT_WIPETIME: case PT_BASICKEEPALIVE:
if (client) if (client)
break; break;
@ -4601,11 +4601,11 @@ static INT16 Consistancy(void)
return (INT16)(ret & 0xFFFF); 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 // used during wipes to tell the server that a node is still connected
static void CL_SendClientKeepAlive(void) static void CL_SendClientKeepAlive(void)
{ {
netbuffer->packettype = PT_WIPETIME; netbuffer->packettype = PT_BASICKEEPALIVE;
HSendPacket(servernode, false, 0, 0); HSendPacket(servernode, false, 0, 0);
} }

View file

@ -71,7 +71,7 @@ typedef enum
PT_CLIENT3MIS, PT_CLIENT3MIS,
PT_CLIENT4CMD, // 4P PT_CLIENT4CMD, // 4P
PT_CLIENT4MIS, 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 PT_CANFAIL, // This is kind of a priority. Anything bigger than CANFAIL
// allows HSendPacket(*, true, *, *) to return false. // allows HSendPacket(*, true, *, *) to return false.

View file

@ -903,7 +903,7 @@ static void DebugPrintpacket(const char *header)
(UINT32)ExpandTics(netbuffer->u.clientpak.client_tic), (UINT32)ExpandTics(netbuffer->u.clientpak.client_tic),
(UINT32)ExpandTics (netbuffer->u.clientpak.resendfrom)); (UINT32)ExpandTics (netbuffer->u.clientpak.resendfrom));
break; break;
case PT_WIPETIME: case PT_BASICKEEPALIVE:
fprintf(debugfile, " wipetime\n"); fprintf(debugfile, " wipetime\n");
break; break;
case PT_TEXTCMD: case PT_TEXTCMD: