|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
/* $Id: single.c,v 1.7 2003/05/07 00:21:38 stpohle Exp $ */
|
|
|
|
|
/* $Id: single.c,v 1.8 2003/05/07 14:30:41 stpohle Exp $ */
|
|
|
|
|
/* single player */
|
|
|
|
|
|
|
|
|
|
#include "basic.h"
|
|
|
|
@ -9,6 +9,8 @@ single_game_new (int ai_players)
|
|
|
|
|
{
|
|
|
|
|
int p,
|
|
|
|
|
i;
|
|
|
|
|
char *tileset;
|
|
|
|
|
char pathname [LEN_PATHFILENAME];
|
|
|
|
|
|
|
|
|
|
// set players on field 1,1
|
|
|
|
|
for (p = 0; p < MAX_PLAYERS; p++) {
|
|
|
|
@ -38,12 +40,14 @@ single_game_new (int ai_players)
|
|
|
|
|
bman.last_ex_nr = 1;
|
|
|
|
|
|
|
|
|
|
field_new (bman.fieldpath);
|
|
|
|
|
tileset_random ();
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
// char *tmp = menu_dir_select ("data/tileset", DF_dir);
|
|
|
|
|
// printf ("Selected: %s\n", tmp);
|
|
|
|
|
}
|
|
|
|
|
sprintf (pathname , "%s/tileset", bman.datapath);
|
|
|
|
|
tileset = menu_dir_select ("Select Tileset", pathname, DF_dir);
|
|
|
|
|
if (tileset == NULL)
|
|
|
|
|
tileset_random ();
|
|
|
|
|
else
|
|
|
|
|
strncpy (gfx.tileset, tileset, LEN_TILESETNAME);
|
|
|
|
|
|
|
|
|
|
bman.players_nr_s = 1;
|
|
|
|
|
bman.players_nr = 1;
|
|
|
|
|
bman.gametype = GT_single;
|
|
|
|
|