Difference for server/main.c from version 1.1 to 1.2


version 1.1 version 1.2
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_main_c =   * static char *rcsid_main_c =
  *    "$Id: main.c,v 1.1 1999/04/02 19:10:04 uid200 Exp $";   *    "$Id: main.c,v 1.2 1999/06/13 06:06:01 cvs Exp $";
  */   */
   
 /*  /*
Line 287
 
Line 287
   /* If the exit is marked unique, this is a special 'apartment' map -    /* If the exit is marked unique, this is a special 'apartment' map -
  * a unique one for each player.   * a unique one for each player.
  */   */
   
   if (op->type==PLAYER && exit_ob && QUERY_FLAG(exit_ob, FLAG_UNIQUE)) {    if (op->type==PLAYER && exit_ob && QUERY_FLAG(exit_ob, FLAG_UNIQUE)) {
  sprintf(apartment, "%s/%s/%s/%s", settings.localdir,   sprintf(apartment, "%s/%s/%s/%s", settings.localdir,
  settings.playerdir, op->name, clean_path(newpath));   settings.playerdir, op->name, clean_path(newpath));
Line 301
 
Line 302
  }   }
   }    }
   
   /* If notunique has been cleared, then the stuff above has already      /* If under nonstandard name, it means the map is unique
  * found a map, so no need to check again.  Otherwise, check       * If its not unique, and it hasn't been loaded, see if the map actually
  * to see if the actual file exists.       * exists.
  * We check to see if a unique version also exists - needed if the       */
  * player saves on the unique map.      if (check_path(newpath, 0) != - 1) {
  */   unique=1;
   if (!unique && !has_been_loaded(newpath) &&       } else if (!unique && !has_been_loaded(newpath) && (check_path(newpath,0)==-1)) {
       check_path(newpath,!unique) == -1) {  
  if (check_path(newpath, 0) == -1) {  
  new_draw_info_format(NDI_UNIQUE, 0,op, "The %s is closed.", newpath);   new_draw_info_format(NDI_UNIQUE, 0,op, "The %s is closed.", newpath);
  return;   return;
  }   }
  else {  
  unique=1;  
  }  
   }  
   
   /* Clear the player's count, and reset direction */    /* Clear the player's count, and reset direction */
   op->direction=0;    op->direction=0;


Legend:
line(s) removed in v.1.1 
line(s) changed
 line(s) added in v.1.2

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