version 1.10 | | version 1.11 |
---|
| | |
/* | | /* |
* static char *rcsid_main_c = | | * static char *rcsid_main_c = |
* "$Id: main.c,v 1.10 2000/06/06 07:05:21 cvs Exp $"; | | * "$Id: main.c,v 1.11 2000/06/17 21:56:45 cvs Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
char newmap_name[HUGE_BUF]; | | char newmap_name[HUGE_BUF]; |
char oldmap_name[HUGE_BUF]; | | char oldmap_name[HUGE_BUF]; |
int i; | | int i; |
| | static int reference_number = 0; |
| | |
/* write the map parameters to the file. */ | | /* write the map parameters to the file. */ |
fprintf(newmap_params,"%s",exit_ob->msg); | | fprintf(newmap_params,"%s",exit_ob->msg); |
| | |
/* pick a new pathname for the new map: it is of the form | | /* pick a new pathname for the new map: it is of the form |
* oldmapname_x_y with underscores instead of '/' and '.', with | | * oldmapname_x_y with underscores instead of '/' and '.', with |
* the entrance coordinates tacked on. */ | | * the entrance coordinates tacked on. */ |
sprintf(newmap_name,"/random/%s_%d_%d",oldmap_name,exit_ob->x,exit_ob->y); | | /*sprintf(newmap_name,"/random/%s_%d_%d",oldmap_name,exit_ob->x,exit_ob->y);*/ |
| | sprintf(newmap_name,"/random/%016d",reference_number++); |
| | |
/* now to generate the actual map. */ | | /* now to generate the actual map. */ |
new_map=(mapstruct *)generate_random_map("/tmp/rmap_params",newmap_name); | | new_map=(mapstruct *)generate_random_map("/tmp/rmap_params",newmap_name); |