Difference for common/treasure.c from version 1.22 to 1.23


version 1.22 version 1.23
Line 1
 
Line 1
   
 /*  /*
  * static char *rcs_treasure_c =   * static char *rcs_treasure_c =
  *   "$Id: treasure.c,v 1.22 2001/11/16 01:34:17 michtoen Exp $";   *   "$Id: treasure.c,v 1.23 2001/11/17 21:25:21 michtoen Exp $";
  */   */
   
 /*  /*
Line 126
 
Line 126
         t->name = add_string(variable);          t->name = add_string(variable);
     else if (sscanf(cp, "change_name %s", variable))      else if (sscanf(cp, "change_name %s", variable))
       t->change_arch.name = add_string(variable);        t->change_arch.name = add_string(variable);
       else if (sscanf(cp, "change_title %s", variable))
           t->change_arch.title = add_string(variable);
       else if (sscanf(cp, "change_slaying %s", variable))
           t->change_arch.slaying = add_string(variable);
     else if(sscanf(cp,"chance %d",&value))      else if(sscanf(cp,"chance %d",&value))
       t->chance=(uint8) value;        t->chance=(uint8) value;
     else if(sscanf(cp,"nrof %d",&value))      else if(sscanf(cp,"nrof %d",&value))
Line 299
 
Line 303
         op->name = add_string(t->change_arch.name);          op->name = add_string(t->change_arch.name);
     }      }
   
       if(t->change_arch.title)
       {
           if(op->title)
               free_string(op->title);
           op->title = add_string(t->change_arch.title);
       }
   
       if(t->change_arch.slaying)
       {
           if(op->slaying)
               free_string(op->slaying);
           op->slaying = add_string(t->change_arch.slaying);
       }
      
 }  }
   
 void create_all_treasures(treasure *t, object *op, int flag, int difficulty, int tries) {  void create_all_treasures(treasure *t, object *op, int flag, int difficulty, int tries) {


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:19