make a packet to tell if a joined client is on saturn
initial stuff works and seems to be vanilla compatible needs its own function and other things to be useful
This commit is contained in:
1 parent
7fd3bd412c
commit
063bf830ff
2 files changed
+12
-1
No files matched your search
+11
-1
@@ -4656,6 +4656,8 @@ static void HandleConnect(SINT8 node)
|
||||
#ifdef JOININGAME
|
||||
if (nodewaiting[node])
|
||||
{
|
||||
netbuffer->packettype = PT_ISSATURN;
|
||||
HSendPacket(node, false, 0, 0);
|
||||
if (node && newnode)
|
||||
{
|
||||
SV_SendSaveGame(node); // send a complete game state
|
||||
@@ -4979,6 +4981,11 @@ static void HandlePacketFromAwayNode(SINT8 node)
|
||||
break;
|
||||
/* FALLTHRU */
|
||||
|
||||
case PT_ISSATURN:
|
||||
CONS_Printf("hi im on saturn\n");
|
||||
client_is_saturn = true;
|
||||
break;
|
||||
|
||||
default:
|
||||
DEBFILE(va("unknown packet received (%d) from unknown host\n",netbuffer->packettype));
|
||||
Net_CloseConnection(node);
|
||||
@@ -5028,7 +5035,6 @@ static void HandlePacketFromPlayer(SINT8 node)
|
||||
tic_t realend, realstart;
|
||||
UINT8 *pak, *txtpak, numtxtpak;
|
||||
|
||||
|
||||
txtpak = NULL;
|
||||
|
||||
if (dedicated && node == 0)
|
||||
@@ -5489,6 +5495,10 @@ static void HandlePacketFromPlayer(SINT8 node)
|
||||
if (client)
|
||||
Got_Filetxpak();
|
||||
break;
|
||||
case PT_ISSATURN:
|
||||
CONS_Printf("hi im on saturn\n");
|
||||
client_is_saturn = true;
|
||||
break;
|
||||
default:
|
||||
DEBFILE(va("UNKNOWN PACKET TYPE RECEIVED %d from host %d\n",
|
||||
netbuffer->packettype, node));
|
||||
|
||||
@@ -98,6 +98,7 @@ typedef enum
|
||||
PT_MOREFILESNEEDED, // Server, to client: "you need these (+ more on top of those)"
|
||||
|
||||
PT_PING, // Packet sent to tell clients the other client's latency to server.
|
||||
PT_ISSATURN,
|
||||
NUMPACKETTYPE
|
||||
} packettype_t;
|
||||
|
||||
|
||||
Reference in new issue
Block a user