From c8b9b318a522ee9bde9846b240bebcc86e6eb780 Mon Sep 17 00:00:00 2001 From: stpohle Date: Sun, 13 Jun 2004 12:03:26 +0000 Subject: [PATCH] fixed selection of ai players in a single game --- src/single.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/single.c b/src/single.c index ed38965..70e03bf 100644 --- a/src/single.c +++ b/src/single.c @@ -1,4 +1,4 @@ -/* $Id: single.c,v 1.64 2004/06/08 22:35:26 stpohle Exp $ */ +/* $Id: single.c,v 1.65 2004/06/13 12:03:26 stpohle Exp $ */ /* single player */ #include "basic.h" @@ -556,6 +556,8 @@ single_create_ai (int num_players) i = 0; _player *pl; + d_printf ("single_create_ai : number of ai players %d\n", num_players); + for (count = 0; count < num_players; count++) { /* find free players */ for (pl = NULL, p = 0; (pl == NULL && p < MAX_PLAYERS); p++) @@ -783,9 +785,11 @@ single_menu () s_calctimesync (); } while (!done); - if (menu->focus->id == 2) + if (menu->focus->id == 2) { + bman.ai_players = selnrplayer - &nrplayerlist[0]; single_playergame (second_player, bman.ai_players); - + } + menu_delete (menu); };