|
|
|
@ -607,7 +607,8 @@ net_delplayer (int pl_nr)
|
|
|
|
|
{
|
|
|
|
|
char host[LEN_SERVERNAME];
|
|
|
|
|
char port[LEN_PORT];
|
|
|
|
|
int i,j=1;
|
|
|
|
|
int i,
|
|
|
|
|
j = 1;
|
|
|
|
|
|
|
|
|
|
d_printf ("net_delplayer (%d)\n", pl_nr);
|
|
|
|
|
|
|
|
|
@ -625,11 +626,14 @@ net_delplayer (int pl_nr)
|
|
|
|
|
bman.players_nr_s--;
|
|
|
|
|
bman.players[pl_nr].gfx_nr = -1;
|
|
|
|
|
|
|
|
|
|
if (GT_MP_PTPM && (GS_WAITRUNNING || bman.state == GS_update))
|
|
|
|
|
if (GT_MP_PTPM && (GS_WAITRUNNING || bman.state == GS_update)) {
|
|
|
|
|
for (i = 1; i < MAX_PLAYERS; i++)
|
|
|
|
|
if (PS_IS_used (bman.players[i].state)) {
|
|
|
|
|
send_quit (&bman.players[i].net.addr, host, port);j++;}
|
|
|
|
|
gamesrv_sendmode(bman.maxplayer,j);
|
|
|
|
|
send_quit (&bman.players[i].net.addr, host, port);
|
|
|
|
|
j++;
|
|
|
|
|
}
|
|
|
|
|
gamesrv_sendmode (bman.maxplayer, j);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (GT_MP_PTPM && bman.notifygamemaster)
|
|
|
|
@ -698,7 +702,9 @@ net_send_chat (char *text, signed char notigamesrv)
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void net_game_send_ill (int p_nr) {
|
|
|
|
|
void
|
|
|
|
|
net_game_send_ill (int p_nr)
|
|
|
|
|
{
|
|
|
|
|
int i;
|
|
|
|
|
|
|
|
|
|
d_printf ("net_game_send_ill (%d)\n", p_nr);
|
|
|
|
@ -724,7 +730,7 @@ net_host_new_game ()
|
|
|
|
|
bman.players[i].pos.y = bman.players[i].pos.x = -1;
|
|
|
|
|
|
|
|
|
|
bman.players_nr = 0;
|
|
|
|
|
game_set_playerposition();
|
|
|
|
|
game_set_playerposition ();
|
|
|
|
|
|
|
|
|
|
bman.players_nr_s = 0;
|
|
|
|
|
for (p = 0; p < MAX_PLAYERS; p++) {
|
|
|
|
|