Difference for server/main.c from version 1.109 to 1.110


version 1.109 version 1.110
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_main_c =   * static char *rcsid_main_c =
  *    "$Id: main.c,v 1.109 2006/01/06 18:38:16 qal21 Exp $";   *    "$Id: main.c,v 1.110 2006/01/08 13:06:59 akirschbaum Exp $";
  */   */
   
 /*  /*
Line 469
 
Line 469
     sprintf(newmap_name,"/random/%s%04d",cp+1, reference_number++);      sprintf(newmap_name,"/random/%s%04d",cp+1, reference_number++);
   
     /* now to generate the actual map. */      /* now to generate the actual map. */
     new_map=(mapstruct *)generate_random_map(newmap_name,&rp);      new_map=generate_random_map(newmap_name,&rp);
   
     /* Update the exit_ob so it now points directly at the newly created      /* Update the exit_ob so it now points directly at the newly created
      * random maps.  Not that it is likely to happen, but it does mean that a       * random maps.  Not that it is likely to happen, but it does mean that a
Line 496
 
Line 496
     mapstruct *new_map;      mapstruct *new_map;
     char tmpnum[32], exitpath[HUGE_BUF], resultname[HUGE_BUF], tmpstring[HUGE_BUF], *sourcemap;      char tmpnum[32], exitpath[HUGE_BUF], resultname[HUGE_BUF], tmpstring[HUGE_BUF], *sourcemap;
     const char *new_map_name;      const char *new_map_name;
     RMParms rp;  
          
     /* Split the exit path string into two parts, one      /* Split the exit path string into two parts, one
      * for where to store the map, and one for were       * for where to store the map, and one for were
      * to generate the map from.       * to generate the map from.
      */       */
     strcpy(exitpath, (EXIT_PATH(exit_ob)+2));      snprintf(exitpath, sizeof(exitpath), "%s", EXIT_PATH(exit_ob)+2);
     sourcemap = strchr(exitpath, *"!");      sourcemap = strchr(exitpath, '!');
     if (!sourcemap) {      if (!sourcemap) {
  new_draw_info_format(NDI_UNIQUE, 0, pl, "The %s is closed.", exit_ob->name);   new_draw_info_format(NDI_UNIQUE, 0, pl, "The %s is closed.", exit_ob->name);
  /* Should only occur when no source map is set.   /* Should only occur when no source map is set.
Line 584
 
Line 583
      * of the exit, and the name of the map the exit is on, respectively.       * of the exit, and the name of the map the exit is on, respectively.
      */       */
     sprintf(tmpnum ,"%d", exit_ob->x);      sprintf(tmpnum ,"%d", exit_ob->x);
     replace((EXIT_PATH(exit_ob)+3), "%x", tmpnum, resultname,  sizeof(resultname));      replace(EXIT_PATH(exit_ob)+3, "%x", tmpnum, resultname,  sizeof(resultname));
          
     sprintf(tmpnum ,"%d", exit_ob->y);      sprintf(tmpnum ,"%d", exit_ob->y);
     sprintf(tmpstring, "%s", resultname);      sprintf(tmpstring, "%s", resultname);
Line 614
 
Line 613
  strcpy(rp.origin_map, pl->map->path);   strcpy(rp.origin_map, pl->map->path);
    
  /* now to generate the actual map. */   /* now to generate the actual map. */
  new_map=(mapstruct *)generate_random_map(new_map_name,&rp);   new_map=generate_random_map(new_map_name,&rp);
     }      }
   
   


Legend:
line(s) removed in v.1.109 
line(s) changed
 line(s) added in v.1.110

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