diff --git a/src/d_clisrv.c b/src/d_clisrv.c index 312a308a101b76acc66a3459b540e7db48922af5..374cb75f1744ad4d68be048d1afda2ca289da8df 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -3120,16 +3120,19 @@ static boolean SV_AddWaitingPlayers(void) { newplayer = true; - // search for a free playernum - // we can't use playeringame since it is not updated here - for (; newplayernum < MAXPLAYERS; newplayernum++) - { - for (n = 0; n < MAXNETNODES; n++) - if (nodetoplayer[n] == newplayernum || nodetoplayer2[n] == newplayernum) + if (netgame) + newplayernum = node; // OMFG SAY WELCOME TO TEH NEW HACK FOR FIX FIL DOWNLOAD!!1! + else + // search for a free playernum + // we can't use playeringame since it is not updated here + for (; newplayernum < MAXPLAYERS; newplayernum++) + { + for (n = 0; n < MAXNETNODES; n++) + if (nodetoplayer[n] == newplayernum || nodetoplayer2[n] == newplayernum) + break; + if (n == MAXNETNODES) break; - if (n == MAXNETNODES) - break; - } + } // should never happen since we check the playernum // before accepting the join diff --git a/src/i_tcp.c b/src/i_tcp.c index c65a536a8577bef3e132b15d4eaab4ad6aa4374f..0063dedd7792ce4cb8af6363d1e6598865a490ab 100644 --- a/src/i_tcp.c +++ b/src/i_tcp.c @@ -498,8 +498,7 @@ static void cleanupnodes(void) // Why can't I start at zero? for (j = 1; j < MAXNETNODES; j++) - //if (!(nodeingame[j] || SV_SendingFile(j))) - if (!nodeingame[j]) + if (!(nodeingame[j] || SV_SendingFile(j))) nodeconnected[j] = false; }