mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-22 10:52:23 +00:00
Add missing PT_ prefix to a few packet handlers
This commit is contained in:
parent
dfdbdee0a8
commit
7240ed22de
5 changed files with 11 additions and 11 deletions
|
@ -1052,7 +1052,7 @@ void CL_ConnectToServer(void)
|
|||
* \note What happens if the packet comes from a client or something like that?
|
||||
*
|
||||
*/
|
||||
void HandleServerInfo(SINT8 node)
|
||||
void PT_ServerInfo(SINT8 node)
|
||||
{
|
||||
// compute ping in ms
|
||||
const tic_t ticnow = I_GetTime();
|
||||
|
@ -1173,7 +1173,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 HandleConnect, the server will send the savegame even during intermission...
|
||||
/// Also, according to PT_Connect, 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;
|
||||
|
|
|
@ -53,7 +53,7 @@ void CL_UpdateServerList(boolean internetsearch, INT32 room);
|
|||
void CL_ConnectToServer(void);
|
||||
boolean CL_SendJoin(void);
|
||||
|
||||
void HandleServerInfo(SINT8 node);
|
||||
void PT_ServerInfo(SINT8 node);
|
||||
void PT_MoreFilesNeeded(SINT8 node);
|
||||
void PT_ServerRefuse(SINT8 node);
|
||||
void PT_ServerCFG(SINT8 node);
|
||||
|
|
|
@ -1358,7 +1358,7 @@ void SV_StartSinglePlayerServer(void)
|
|||
* \param node The packet sender (should be the server)
|
||||
*
|
||||
*/
|
||||
static void HandleShutdown(SINT8 node)
|
||||
static void PT_Shutdown(SINT8 node)
|
||||
{
|
||||
(void)node;
|
||||
LUA_HookBool(false, HOOK(GameQuit));
|
||||
|
@ -1373,7 +1373,7 @@ static void HandleShutdown(SINT8 node)
|
|||
* \param node The packet sender (should be the server)
|
||||
*
|
||||
*/
|
||||
static void HandleTimeout(SINT8 node)
|
||||
static void PT_Timeout(SINT8 node)
|
||||
{
|
||||
(void)node;
|
||||
LUA_HookBool(false, HOOK(GameQuit));
|
||||
|
@ -1608,26 +1608,26 @@ void GetPackets(void)
|
|||
|
||||
if (netbuffer->packettype == PT_CLIENTJOIN && server)
|
||||
{
|
||||
HandleConnect(node);
|
||||
PT_Connect(node);
|
||||
continue;
|
||||
}
|
||||
if (node == servernode && client && cl_mode != CL_SEARCHING)
|
||||
{
|
||||
if (netbuffer->packettype == PT_SERVERSHUTDOWN)
|
||||
{
|
||||
HandleShutdown(node);
|
||||
PT_Shutdown(node);
|
||||
continue;
|
||||
}
|
||||
if (netbuffer->packettype == PT_NODETIMEOUT)
|
||||
{
|
||||
HandleTimeout(node);
|
||||
PT_Timeout(node);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if (netbuffer->packettype == PT_SERVERINFO)
|
||||
{
|
||||
HandleServerInfo(node);
|
||||
PT_ServerInfo(node);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
@ -422,7 +422,7 @@ GetRefuseMessage (SINT8 node, INT32 rejoinernum)
|
|||
* \param node The packet sender
|
||||
*
|
||||
*/
|
||||
void HandleConnect(SINT8 node)
|
||||
void PT_Connect(SINT8 node)
|
||||
{
|
||||
char names[MAXSPLITSCREENPLAYERS][MAXPLAYERNAME + 1];
|
||||
INT32 numplayers = netbuffer->u.clientcfg.localplayers;
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
#include "../doomdef.h"
|
||||
#include "../doomtype.h"
|
||||
|
||||
void HandleConnect(SINT8 node);
|
||||
void PT_Connect(SINT8 node);
|
||||
void PT_AskInfoViaMS(SINT8 node);
|
||||
void PT_TellFilesNeeded(SINT8 node);
|
||||
void PT_AskInfo(SINT8 node);
|
||||
|
|
Loading…
Reference in a new issue