Difference for server/rune.c from version 1.48 to 1.49


version 1.48 version 1.49
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_rune_c =   * static char *rcsid_rune_c =
  *   "$Id: rune.c,v 1.48 2006/06/26 07:31:00 mwedel Exp $";   *   "$Id: rune.c,v 1.49 2006/06/29 06:09:23 mwedel Exp $";
  */   */
   
 /*  /*
Line 262
 
Line 262
  (trap->other_arch && trap->other_arch->clone.type == SPELL)) {   (trap->other_arch && trap->other_arch->clone.type == SPELL)) {
  object *spell;   object *spell;
   
  if (trap->direction)   /* This is necessary if the trap is inside something else */
      rv.direction = trap->direction;   remove_ob(trap);
    trap->x=victim->x;
    trap->y=victim->y;
    insert_ob_in_map(trap,victim->map,trap,0);
   
    if (was_destroyed (trap, trap_tag))
        return;
   
  for(i = 0; i < MAX(1, trap->stats.maxhp); i++) {   for(i = 0; i < MAX(1, trap->stats.maxhp); i++) {
      if (trap->inv)       if (trap->inv)
  cast_spell(env,trap,rv.direction,trap->inv,NULL);   cast_spell(trap,trap,trap->direction,trap->inv,NULL);
      else {       else {
  spell = arch_to_object(trap->other_arch);   spell = arch_to_object(trap->other_arch);
  cast_spell(env,trap,rv.direction,spell,NULL);   cast_spell(trap,trap,trap->direction,spell,NULL);
  free_object(spell);   free_object(spell);
      }       }
  }   }


Legend:
line(s) removed in v.1.48 
line(s) changed
 line(s) added in v.1.49

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