Difference for common/loader.l from version 1.77 to 1.78


version 1.77 version 1.78
Line 1
 
Line 1
 %{  %{
 /*  /*
  * static char *rcsid_object_c =   * static char *rcsid_object_c =
  *   "$Id: loader.l,v 1.77 2006/03/18 16:23:40 ryo_saeba Exp $";   *   "$Id: loader.l,v 1.78 2006/04/06 21:18:34 tchize Exp $";
  */   */
   
 /*  /*
Line 421
 
Line 421
  /* Fireall is bizarre in that spell type was stored in dam.  Rest are 'normal'   /* Fireall is bizarre in that spell type was stored in dam.  Rest are 'normal'
  * in that spell was stored in sp.   * in that spell was stored in sp.
  */   */
  tmp = get_archetype(spell_mapping[op->type == FIREWALL?op->stats.dam:op->stats.sp]);   tmp = create_archetype(spell_mapping[op->type == FIREWALL?op->stats.dam:op->stats.sp]);
  insert_ob_in_ob(tmp, op);   insert_ob_in_ob(tmp, op);
  op->randomitems = NULL; /* So another spell isn't created for this object */   op->randomitems = NULL; /* So another spell isn't created for this object */
     }      }
Line 430
 
Line 430
     if ((op->type == SPELLBOOK || op->type == RUNE) && op->slaying && !op->inv && !arch_init) {      if ((op->type == SPELLBOOK || op->type == RUNE) && op->slaying && !op->inv && !arch_init) {
  object *tmp;   object *tmp;
   
  tmp = get_archetype_by_object_name(op->slaying);   tmp = create_archetype_by_object_name(op->slaying);
  insert_ob_in_ob(tmp, op);   insert_ob_in_ob(tmp, op);
  op->randomitems = NULL; /* So another spell isn't created for this object */   op->randomitems = NULL; /* So another spell isn't created for this object */
  /* without this, value is all screwed up */   /* without this, value is all screwed up */


Legend:
line(s) removed in v.1.77 
line(s) changed
 line(s) added in v.1.78

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