udp_send:: Invalid argument, error fixed. net_delplayer_send had a problem with the local second player

origin
stpohle 21 years ago
parent 84ac956883
commit b009022799

@ -1,4 +1,4 @@
/* $Id: network.c,v 1.64 2004/09/12 20:54:24 stpohle Exp $ */ /* $Id: network.c,v 1.65 2004/09/23 13:12:15 stpohle Exp $ */
/* /*
network routines. network routines.
*/ */
@ -708,7 +708,7 @@ net_game_send_delplayer (int pl_nr) {
if (GT_MP_PTPM && (GS_WAITRUNNING || bman.state == GS_update)) { if (GT_MP_PTPM && (GS_WAITRUNNING || bman.state == GS_update)) {
for (i = 0; i < MAX_PLAYERS; i++) for (i = 0; i < MAX_PLAYERS; i++)
if (NET_CANSEND(i) || pl_nr == i) if (NET_CANSEND(i))
send_quit (&players[i].net.addr, pl_nr); send_quit (&players[i].net.addr, pl_nr);
if (bman.notifygamemaster) if (bman.notifygamemaster)
send_ogc_update (); send_ogc_update ();

Loading…
Cancel
Save