Difference for server/rune.c from version 1.35 to 1.36


version 1.35 version 1.36
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_rune_c =   * static char *rcsid_rune_c =
  *   "$Id: rune.c,v 1.35 2003/09/13 05:02:12 mwedel Exp $";   *   "$Id: rune.c,v 1.36 2003/12/01 05:45:18 mwedel Exp $";
  */   */
   
 /*  /*
Line 220
 
Line 220
 {  {
     object *env;      object *env;
     tag_t trap_tag = trap->count;      tag_t trap_tag = trap->count;
       rv_vector rv;
   
   
     /* Prevent recursion */      /* Prevent recursion */
     if (trap->stats.hp <= 0)      if (trap->stats.hp <= 0)
Line 244
 
Line 246
      *   knows what hit him.         *   knows what hit him. 
      */       */
     for (env = trap; env->env != NULL; env = env->env) ;      for (env = trap; env->env != NULL; env = env->env) ;
   
       /* If the victim is not next to this trap, don't set it off.
        * players shouldn't get hit by firing arrows at a door for example.
        * At the same time, the trap will stick around until detonated
        */
       get_rangevector(env, victim, &rv, 0);
       if (rv.distance > 1) return;
   
     trap_show(trap,env);        trap_show(trap,env); 
   
     /* Only if it is a spell do we proceed here */      /* Only if it is a spell do we proceed here */


Legend:
line(s) removed in v.1.35 
line(s) changed
 line(s) added in v.1.36

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