Difference for common/arch.c from version 1.35 to 1.36


version 1.35 version 1.36
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_arch_c =   * static char *rcsid_arch_c =
  *   "$Id: arch.c,v 1.35 2005/12/05 23:34:03 akirschbaum Exp $";   *   "$Id: arch.c,v 1.36 2006/02/08 23:53:19 akirschbaum Exp $";
  */   */
   
 /*  /*
Line 71
 
Line 71
     return NULL;      return NULL;
 }  }
   
   /**
    * This function retrieves an archetype by type and name that appears during
    * the game. It is basically the same as find_archetype_by_object_name()
    * except that it considers only items of the given type.
    */
   archetype *find_archetype_by_object_type_name(int type, const char *name) {
       archetype *at;
   
       if (name == NULL)
           return NULL;
   
       for (at = first_archetype; at != NULL; at = at->next) {
           if (at->clone.type == type && strcmp(at->clone.name, name) == 0)
               return at;
       }
   
       return NULL;
   }
   
 /* This is a lot like the above function.  Instead, we are trying to match  /* This is a lot like the above function.  Instead, we are trying to match
  * the arch->skill values.  type is the type of object to match   * the arch->skill values.  type is the type of object to match
  * against (eg, to only match against skills or only skill objects for example).   * against (eg, to only match against skills or only skill objects for example).


Legend:
line(s) removed in v.1.35 
line(s) changed
 line(s) added in v.1.36

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