Difference for server/spell_attack.c from version 1.4 to 1.5


version 1.4 version 1.5
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_spell_attack_c =   * static char *rcsid_spell_attack_c =
  *   "$Id: spell_attack.c,v 1.4 2004/02/17 00:22:25 mwedel Exp $";   *   "$Id: spell_attack.c,v 1.5 2004/02/23 06:06:30 mwedel Exp $";
  */   */
   
   
Line 739
 
Line 739
     }      }
   
     if(!dir) {      if(!dir) {
  range_min= -3;   range_min= 0;
  range_max=4;   range_max=8;
     }      }
   
     for(i=range_min;i<=range_max;i++) {      for(i=range_min;i<=range_max;i++) {
Line 755
 
Line 755
  while (d < 0) d+=8;   while (d < 0) d+=8;
  while (d > 8) d-=8;   while (d > 8) d-=8;
   
  if (caster->type != RUNE && d==0) continue;   /* If it's not a rune, we don't want to blast the caster.
    * In that case, we have to see - if dir is specified,
    * turn this into direction 8.  If dir is not specified (all
    * direction) skip - otherwise, one line would do more damage
    * becase 0 direction will go through 9 directions - necessary
    * for the rune code.
    */
    if (caster->type != RUNE && d==0) {
        if (dir!=0) d=8;
        else continue;
    }
   
  x = op->x+freearr_x[d];   x = op->x+freearr_x[d];
  y = op->y+freearr_y[d];   y = op->y+freearr_y[d];


Legend:
line(s) removed in v.1.4 
line(s) changed
 line(s) added in v.1.5

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