mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-22 20:41:25 +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)
|
if (server || cl_redownloadinggamestate)
|
||||||
return;
|
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
|
// so they know they can start sending the game state
|
||||||
netbuffer->packettype = PT_CANRESENDGAMESTATE;
|
netbuffer->packettype = PT_CANRECEIVEGAMESTATE;
|
||||||
if (!HSendPacket(servernode, true, 0, 0))
|
if (!HSendPacket(servernode, true, 0, 0))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -3748,7 +3748,7 @@ static void PT_WillResendGamestate(void)
|
||||||
cl_redownloadinggamestate = true;
|
cl_redownloadinggamestate = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void PT_CanResendGamestate(SINT8 node)
|
static void PT_CanReceiveGamestate(SINT8 node)
|
||||||
{
|
{
|
||||||
if (client || sendingsavegame[node])
|
if (client || sendingsavegame[node])
|
||||||
return;
|
return;
|
||||||
|
@ -4200,8 +4200,8 @@ static void HandlePacketFromPlayer(SINT8 node)
|
||||||
Net_CloseConnection(node);
|
Net_CloseConnection(node);
|
||||||
nodeingame[node] = false;
|
nodeingame[node] = false;
|
||||||
break;
|
break;
|
||||||
case PT_CANRESENDGAMESTATE:
|
case PT_CANRECEIVEGAMESTATE:
|
||||||
PT_CanResendGamestate(node);
|
PT_CanReceiveGamestate(node);
|
||||||
break;
|
break;
|
||||||
// -------------------------------------------- CLIENT RECEIVE ----------
|
// -------------------------------------------- CLIENT RECEIVE ----------
|
||||||
case PT_RESYNCHEND:
|
case PT_RESYNCHEND:
|
||||||
|
|
|
@ -68,7 +68,7 @@ typedef enum
|
||||||
PT_RESYNCHGET, // Player got resynch packet
|
PT_RESYNCHGET, // Player got resynch packet
|
||||||
|
|
||||||
PT_WILLRESENDGAMESTATE, // Hey Client, I am about to resend you the gamestate!
|
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.
|
// Add non-PT_CANFAIL packet types here to avoid breaking MS compatibility.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue