Difference for server/egoitem.c from version 1.3 to 1.4


version 1.3 version 1.4
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_egoitem_c =   * static char *rcsid_egoitem_c =
  *   "$Id: egoitem.c,v 1.3 2000/05/26 09:50:49 jec Exp $";   *   "$Id: egoitem.c,v 1.4 2001/10/14 07:57:14 gros Exp $";
  */   */
    
   
Line 9
 
Line 9
 #include <sproto.h>  #include <sproto.h>
 #endif  #endif
   
   /* GROS: I put this here, because no other file seemed quite good.*/
   object *create_artifact(object *op, char *artifactname)
   {
           artifactlist *al;
           artifact *art;
           char *temptitle;
           al = find_artifactlist(op->type);
           if (al==NULL)
                   return NULL;
           for (art=al->items; art!=NULL; art=art->next)
           {
                   temptitle = (char *)(malloc(strlen(art->item->name) + 5));
                   strcpy(temptitle, " of ");
                   strcat(temptitle, art->item->name);
                   if (!strcmp (temptitle, artifactname))
                   {
                           give_artifact_abilities(op, art->item);
                   }
   
                   free(temptitle);
           };
           return NULL;
   }
   
   
 /*  peterm:  do_power_crystal  /*  peterm:  do_power_crystal


Legend:
line(s) removed in v.1.3 
line(s) changed
 line(s) added in v.1.4

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