mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-22 12:31:32 +00:00
Rename packet
This commit is contained in:
parent
a927d67259
commit
4f7591a044
2 changed files with 6 additions and 6 deletions
|
@ -3729,9 +3729,9 @@ static void PT_WillResendGamestate(void)
|
|||
if (server || cl_redownloadinggamestate)
|
||||
return;
|
||||
|
||||
// Send back a PT_CANRESENDGAMESTATE packet to the server
|
||||
// Send back a PT_CANRECEIVEGAMESTATE packet to the server
|
||||
// so they know they can start sending the game state
|
||||
netbuffer->packettype = PT_CANRESENDGAMESTATE;
|
||||
netbuffer->packettype = PT_CANRECEIVEGAMESTATE;
|
||||
if (!HSendPacket(servernode, true, 0, 0))
|
||||
return;
|
||||
|
||||
|
@ -3748,7 +3748,7 @@ static void PT_WillResendGamestate(void)
|
|||
cl_redownloadinggamestate = true;
|
||||
}
|
||||
|
||||
static void PT_CanResendGamestate(SINT8 node)
|
||||
static void PT_CanReceiveGamestate(SINT8 node)
|
||||
{
|
||||
if (client || sendingsavegame[node])
|
||||
return;
|
||||
|
@ -4200,8 +4200,8 @@ static void HandlePacketFromPlayer(SINT8 node)
|
|||
Net_CloseConnection(node);
|
||||
nodeingame[node] = false;
|
||||
break;
|
||||
case PT_CANRESENDGAMESTATE:
|
||||
PT_CanResendGamestate(node);
|
||||
case PT_CANRECEIVEGAMESTATE:
|
||||
PT_CanReceiveGamestate(node);
|
||||
break;
|
||||
// -------------------------------------------- CLIENT RECEIVE ----------
|
||||
case PT_RESYNCHEND:
|
||||
|
|
|
@ -68,7 +68,7 @@ typedef enum
|
|||
PT_RESYNCHGET, // Player got resynch packet
|
||||
|
||||
PT_WILLRESENDGAMESTATE, // Hey Client, I am about to resend you the gamestate!
|
||||
PT_CANRESENDGAMESTATE, // Okay Server, I'm ready to receive it, you can go ahead.
|
||||
PT_CANRECEIVEGAMESTATE, // Okay Server, I'm ready to receive it, you can go ahead.
|
||||
|
||||
// Add non-PT_CANFAIL packet types here to avoid breaking MS compatibility.
|
||||
|
||||
|
|
Loading…
Reference in a new issue