AI Player didn\'t die in network games.. i forgot to add them to server controll

origin
stpohle 22 years ago
parent 5fce04d2fd
commit 3cc3492d51

@ -1,4 +1,4 @@
/* $Id: bomb.c,v 1.50 2003/11/08 20:14:32 stpohle Exp $ */
/* $Id: bomb.c,v 1.51 2003/11/09 04:09:49 stpohle Exp $ */
/* everything what have to do with the bombs */
#include "bomberclone.h"
@ -393,7 +393,7 @@ explosion_check_field (int x, int y, int p, int b)
for (i = 0; pl[i] != -1; i++) {
tmpplayer = &players[pl[i]];
if (((tmpplayer->state & PSF_alife) != 0)
&& (GT_SP || (GT_MP && (&players[bman.p_nr] == tmpplayer))))
&& (GT_SP || (GT_MP && (&players[bman.p_nr] == tmpplayer)) || (GT_MP_PTPM && PS_IS_aiplayer(tmpplayer->state))))
player_died (tmpplayer, p);
}

@ -1,4 +1,4 @@
/* $Id: single.c,v 1.47 2003/11/09 03:56:56 stpohle Exp $ */
/* $Id: single.c,v 1.48 2003/11/09 04:09:49 stpohle Exp $ */
/* single player */
#include "basic.h"
@ -552,7 +552,7 @@ single_create_ai (int num_players)
for (pl = NULL, p = 0; (pl == NULL && p < MAX_PLAYERS); p++)
if (!(PS_IS_used (players[p].state))) {
pl = &players[p];
sprintf (pl->name, "AI %d", count + 1);
sprintf (pl->name, "AIPlayer %d", p+1);
pl->state |= PSF_used + PSF_alife + PSF_playing + PSF_ai;
pl->net.flags = NETF_firewall;
sprintf (pl->net.addr.host, "localhost");

Loading…
Cancel
Save