Difference for server/player.c from version 1.168 to 1.169


version 1.168 version 1.169
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_player_c =   * static char *rcsid_player_c =
  *   "$Id: player.c,v 1.168 2005/07/30 15:03:00 ryo_saeba Exp $";   *   "$Id: player.c,v 1.169 2005/08/08 06:27:30 mwedel Exp $";
  */   */
   
 /*  /*
Line 1558
 
Line 1558
  * player fire modes.   * player fire modes.
  */   */
 int fire_bow(object *op, object *part, object *arrow, int dir, int wc_mod,  int fire_bow(object *op, object *part, object *arrow, int dir, int wc_mod,
              int sx, int sy)               sint16 sx, sint16 sy)
 {  {
     object *left, *bow;      object *left, *bow;
     tag_t left_tag, tag;      tag_t left_tag, tag;
     int bowspeed;      int bowspeed, mflags;
   
     if (!dir) {      if (!dir) {
  new_draw_info(NDI_UNIQUE, 0, op, "You can't shoot yourself!");   new_draw_info(NDI_UNIQUE, 0, op, "You can't shoot yourself!");
Line 1607
 
Line 1607
      return 0;       return 0;
  }   }
     }      }
       mflags = get_map_flags(op->map,NULL, sx, sy, &sx, &sy);
     if(get_map_flags(op->map,NULL, op->x+freearr_x[dir],op->y+freearr_y[dir], NULL, NULL) &      if ( mflags &  P_WALL) {
        P_WALL) {  
  new_draw_info(NDI_UNIQUE, 0,op,"Something is in the way.");   new_draw_info(NDI_UNIQUE, 0,op,"Something is in the way.");
  return 0;   return 0;
     }      }
       if (mflags & P_OUT_OF_MAP) {
    return 0;
       }
   
     /* this should not happen, but sometimes does */      /* this should not happen, but sometimes does */
     if (arrow->nrof==0) {      if (arrow->nrof==0) {


Legend:
line(s) removed in v.1.168 
line(s) changed
 line(s) added in v.1.169

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