Difference for server/pets.c from version 1.22 to 1.23


version 1.22 version 1.23
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_pets_c =   * static char *rcsid_pets_c =
  *    "$Id: pets.c,v 1.22 2004/04/05 07:01:11 mwedel Exp $";   *    "$Id: pets.c,v 1.23 2004/05/04 07:14:53 mwedel Exp $";
  */   */
   
 /*  /*
Line 786
 
Line 786
  */   */
  for (tr=spell_ob->randomitems->items; tr; tr=tr->next) {   for (tr=spell_ob->randomitems->items; tr; tr=tr->next) {
      if (level < tr->magic) break;       if (level < tr->magic) break;
      if (tr->next == NULL || tr->next->item == NULL) break;  
      lasttr = tr;       lasttr = tr;
        if (tr->next == NULL || tr->next->item == NULL) break;
  }   }
  if (!lasttr) {   if (!lasttr) {
      LOG(llevError,"Treasurelist %s did not generate a valid entry in summon_object\n",       LOG(llevError,"Treasurelist %s did not generate a valid entry in summon_object\n",
Line 905
 
Line 905
  head = insert_ob_in_map(head, head->map, op, 0);   head = insert_ob_in_map(head, head->map, op, 0);
  if (head && head->randomitems) {   if (head && head->randomitems) {
      object *tmp;       object *tmp;
      create_treasure(head->randomitems, head, GT_APPLY, 6, 0);       create_treasure(head->randomitems, head, GT_APPLY | GT_STARTEQUIP, 6, 0);
      for (tmp=head->inv; tmp; tmp=tmp->below)       for (tmp=head->inv; tmp; tmp=tmp->below)
  if (!tmp->nrof) SET_FLAG(tmp, FLAG_NO_DROP);   if (!tmp->nrof) SET_FLAG(tmp, FLAG_NO_DROP);
  }   }


Legend:
line(s) removed in v.1.22 
line(s) changed
 line(s) added in v.1.23

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