From 3cc3492d518d7dea50e337bcb62f5e9499074b9f Mon Sep 17 00:00:00 2001 From: stpohle Date: Sun, 9 Nov 2003 04:09:49 +0000 Subject: [PATCH] AI Player didn\'t die in network games.. i forgot to add them to server controll --- src/bomb.c | 4 ++-- src/single.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bomb.c b/src/bomb.c index fbf736e..0c96a3f 100644 --- a/src/bomb.c +++ b/src/bomb.c @@ -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); } diff --git a/src/single.c b/src/single.c index 5a8a7cb..d9fc38e 100644 --- a/src/single.c +++ b/src/single.c @@ -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");