mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-28 04:00:41 +00:00
Remove cruft from my initial days of fumbling with this branch
textcmd[0] for PT_NODETIMEOUT can't hold anything < 0 anyway, and you'd probably have to really try to get >= MAXNETNODES
This commit is contained in:
parent
e09270276e
commit
ab5835cd3b
2 changed files with 1 additions and 8 deletions
|
@ -4004,9 +4004,6 @@ FILESTAMP
|
||||||
|
|
||||||
while (HGetPacket())
|
while (HGetPacket())
|
||||||
{
|
{
|
||||||
if (doomcom->remotenode == -1) // ...this should have been ignored already
|
|
||||||
continue; // might come from PT_NODETIMEOUT somehow though
|
|
||||||
|
|
||||||
node = (SINT8)doomcom->remotenode;
|
node = (SINT8)doomcom->remotenode;
|
||||||
|
|
||||||
if (netbuffer->packettype == PT_CLIENTJOIN && server)
|
if (netbuffer->packettype == PT_CLIENTJOIN && server)
|
||||||
|
@ -4039,10 +4036,8 @@ FILESTAMP
|
||||||
if (netbuffer->packettype == PT_PLAYERINFO)
|
if (netbuffer->packettype == PT_PLAYERINFO)
|
||||||
continue; // We do nothing with PLAYERINFO, that's for the MS browser.
|
continue; // We do nothing with PLAYERINFO, that's for the MS browser.
|
||||||
|
|
||||||
if (node < 0 || node >= MAXNETNODES) // THIS SHOULDN'T EVEN BE POSSIBLE
|
|
||||||
; //CONS_Printf("Received packet from node %d!\n", (int)node);
|
|
||||||
// Packet received from someone already playing
|
// Packet received from someone already playing
|
||||||
else if (nodeingame[node])
|
if (nodeingame[node])
|
||||||
HandlePacketFromPlayer(node);
|
HandlePacketFromPlayer(node);
|
||||||
// Packet received from someone not playing
|
// Packet received from someone not playing
|
||||||
else
|
else
|
||||||
|
|
|
@ -1133,8 +1133,6 @@ boolean HGetPacket(void)
|
||||||
|
|
||||||
rebound_tail = (rebound_tail+1) % MAXREBOUND;
|
rebound_tail = (rebound_tail+1) % MAXREBOUND;
|
||||||
|
|
||||||
if (doomcom->remotenode == -1) // wait hang on what?
|
|
||||||
return true; // there might still be packets from others though, so don't return false
|
|
||||||
#ifdef DEBUGFILE
|
#ifdef DEBUGFILE
|
||||||
if (debugfile)
|
if (debugfile)
|
||||||
DebugPrintpacket("GETLOCAL");
|
DebugPrintpacket("GETLOCAL");
|
||||||
|
|
Loading…
Reference in a new issue