Rename packet handlers to match their associated PT_ constants

This commit is contained in:
LJ Sonic 2023-01-08 00:46:12 +01:00
parent fef13b630c
commit db85e956c9
4 changed files with 5 additions and 5 deletions

View file

@ -1166,7 +1166,7 @@ void PT_ServerCFG(SINT8 node)
/// \note Wait. What if a Lua script uses some global custom variables synched with the NetVars hook?
/// Shouldn't them be downloaded even at intermission time?
/// Also, according to PT_Connect, the server will send the savegame even during intermission...
/// Also, according to PT_ClientJoin, the server will send the savegame even during intermission...
if (netbuffer->u.servercfg.gamestate == GS_LEVEL/* ||
netbuffer->u.servercfg.gamestate == GS_INTERMISSION*/)
cl_mode = CL_DOWNLOADSAVEGAME;

View file

@ -1350,7 +1350,7 @@ void SV_StartSinglePlayerServer(void)
* \param node The packet sender (should be the server)
*
*/
static void PT_Shutdown(SINT8 node)
static void PT_ServerShutdown(SINT8 node)
{
(void)node;
LUA_HookBool(false, HOOK(GameQuit));
@ -1365,7 +1365,7 @@ static void PT_Shutdown(SINT8 node)
* \param node The packet sender (should be the server)
*
*/
static void PT_Timeout(SINT8 node)
static void PT_NodeTimeout(SINT8 node)
{
(void)node;
LUA_HookBool(false, HOOK(GameQuit));

View file

@ -422,7 +422,7 @@ GetRefuseMessage (SINT8 node, INT32 rejoinernum)
* \param node The packet sender
*
*/
void PT_Connect(SINT8 node)
void PT_ClientJoin(SINT8 node)
{
char names[MAXSPLITSCREENPLAYERS][MAXPLAYERNAME + 1];
INT32 numplayers = netbuffer->u.clientcfg.localplayers;

View file

@ -17,7 +17,7 @@
#include "../doomdef.h"
#include "../doomtype.h"
void PT_Connect(SINT8 node);
void PT_ClientJoin(SINT8 node);
void PT_AskInfoViaMS(SINT8 node);
void PT_TellFilesNeeded(SINT8 node);
void PT_AskInfo(SINT8 node);