Difference for server/main.c from version 1.99 to 1.100


version 1.99 version 1.100
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_main_c =   * static char *rcsid_main_c =
  *    "$Id: main.c,v 1.99 2005/10/16 22:51:21 qal21 Exp $";   *    "$Id: main.c,v 1.100 2005/10/18 07:19:40 qal21 Exp $";
  */   */
   
 /*  /*
Line 549
 
Line 549
 static void enter_random_template_map(object *pl, object *exit_ob)  static void enter_random_template_map(object *pl, object *exit_ob)
 {  {
     mapstruct *new_map;      mapstruct *new_map;
     char *cp;      char *cp, tmpnum[32], resultname[HUGE_BUF], tmpstring[HUGE_BUF];
     const char *new_map_name;      const char *new_map_name;
     static int reference_number = 0;      static int reference_number = 0;
     RMParms rp;      RMParms rp;
     new_map_name = create_template_pathname(clean_path((const char*)(EXIT_PATH(exit_ob))+3));     
       sprintf(tmpnum ,"%d", exit_ob->x);
       printf("x=%s\n", tmpnum);
      
       replace((EXIT_PATH(exit_ob)+3), "%x", tmpnum, resultname,  sizeof(resultname));
       printf("1=%s\n", resultname);
      
       sprintf(tmpnum ,"%d", exit_ob->y);
       printf("y=%s\n", tmpnum);
      
       sprintf(tmpstring, "%s", resultname);
       replace(tmpstring, "%y", tmpnum, resultname,  sizeof(resultname));
       printf("2=%s\n", resultname);
      
       sprintf(tmpstring, "%s", resultname);
       replace(tmpstring, "%n", exit_ob->map->name, resultname,  sizeof(resultname));
       printf("3=%s\n", resultname);
      
       new_map_name = create_template_pathname(resultname);
   
     new_map = ready_map_name(new_map_name, MAP_PLAYER_UNIQUE);      new_map = ready_map_name(new_map_name, MAP_PLAYER_UNIQUE);
     if (!new_map) {      if (!new_map) {


Legend:
line(s) removed in v.1.99 
line(s) changed
 line(s) added in v.1.100

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