Difference for common/treasure.c from version 1.59 to 1.60


version 1.59 version 1.60
Line 1
 
Line 1
   
 /*  /*
  * static char *rcs_treasure_c =   * static char *rcs_treasure_c =
  *   "$Id: treasure.c,v 1.59 2005/09/04 16:58:12 akirschbaum Exp $";   *   "$Id: treasure.c,v 1.60 2005/10/05 01:01:05 cavesomething Exp $";
  */   */
   
 /*  /*
Line 382
 
Line 382
      create_one_treasure(tl, op, flag, difficulty, tries);       create_one_treasure(tl, op, flag, difficulty, tries);
  return;   return;
     }      }
     if(t->item->clone.invisible != 0 || flag != GT_INVISIBLE) {      if((t->item && t->item->clone.invisible != 0) || flag != GT_INVISIBLE) {
  object *tmp=arch_to_object(t->item);   object *tmp=arch_to_object(t->item);
    if (!tmp) return;
         if(t->nrof && tmp->nrof<=1)          if(t->nrof && tmp->nrof<=1)
           tmp->nrof = RANDOM()%((int) t->nrof) + 1;            tmp->nrof = RANDOM()%((int) t->nrof) + 1;
         fix_generated_item (tmp, op, difficulty, t->magic, flag);          fix_generated_item (tmp, op, difficulty, t->magic, flag);


Legend:
line(s) removed in v.1.59 
line(s) changed
 line(s) added in v.1.60

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