mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
Rename packet handlers to match their associated PT_ constants
This commit is contained in:
parent
fef13b630c
commit
db85e956c9
4 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue