Difference for server/main.c from version 1.10 to 1.11


version 1.10 version 1.11
Line 1
 
Line 1
 /*  /*
  * 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 $";
  */   */
   
 /*  /*
Line 231
 
Line 231
    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);
Line 252
 
Line 253
    /* 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);


Legend:
line(s) removed in v.1.10 
line(s) changed
 line(s) added in v.1.11

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:36