Difference for server/spell_attack.c from version 1.7 to 1.8


version 1.7 version 1.8
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_spell_attack_c =   * static char *rcsid_spell_attack_c =
  *   "$Id: spell_attack.c,v 1.7 2004/02/26 06:17:28 mwedel Exp $";   *   "$Id: spell_attack.c,v 1.8 2004/02/27 23:00:28 ryo_saeba Exp $";
  */   */
   
   
Line 275
 
Line 275
   
     if(op->range>0) {      if(op->range>0) {
  for(i=1;i<9;i++) {   for(i=1;i<9;i++) {
      int dx,dy;       sint16 dx,dy;
   
      dx=op->x+freearr_x[i];       dx=op->x+freearr_x[i];
      dy=op->y+freearr_y[i];       dy=op->y+freearr_y[i];
Line 700
 
Line 700
     }      }
   
     for(i= -1;i<2;i++) {      for(i= -1;i<2;i++) {
  int x=op->x+freearr_x[absdir(op->stats.sp+i)],   sint16 x=op->x+freearr_x[absdir(op->stats.sp+i)],
      y=op->y+freearr_y[absdir(op->stats.sp+i)];       y=op->y+freearr_y[absdir(op->stats.sp+i)];
   
  if(ok_to_put_more(op->map,x,y,op,op->attacktype)) {   if(ok_to_put_more(op->map,x,y,op,op->attacktype)) {
Line 747
 
Line 747
     }      }
   
     for(i=range_min;i<=range_max;i++) {      for(i=range_min;i<=range_max;i++) {
  int x,y, d;   sint16 x,y, d;
   
  /* We can't use absdir here, because it never returns   /* We can't use absdir here, because it never returns
  * 0.  If this is a rune, we want to hit the person on top   * 0.  If this is a rune, we want to hit the person on top
Line 909
 
Line 909
   
     object *tmp;      object *tmp;
   
     int dx=op->x+freearr_x[dir], dy=op->y+freearr_y[dir];      sint16 dx=op->x+freearr_x[dir], dy=op->y+freearr_y[dir];
   
     if(get_map_flags(op->map,NULL, dx,dy, NULL,NULL) & (P_OUT_OF_MAP | P_WALL)) {      if(get_map_flags(op->map,NULL, dx,dy, NULL,NULL) & (P_OUT_OF_MAP | P_WALL)) {
  new_draw_info(NDI_UNIQUE, 0,op,"There is something in the way.");   new_draw_info(NDI_UNIQUE, 0,op,"There is something in the way.");
Line 1460
 
Line 1460
  */   */
   
 void move_ball_spell(object *op) {  void move_ball_spell(object *op) {
     int i,nx,ny,j,dam_save,dir, mflags;      int i,j,dam_save,dir, mflags;
       sint16 nx,ny;
     object *owner;      object *owner;
     mapstruct *m;      mapstruct *m;
   


Legend:
line(s) removed in v.1.7 
line(s) changed
 line(s) added in v.1.8

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