Difference for server/monster.c from version 1.63 to 1.64


version 1.63 version 1.64
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_monster_c =   * static char *rcsid_monster_c =
  *    "$Id: monster.c,v 1.63 2003/03/07 07:33:13 mwedel Exp $";   *    "$Id: monster.c,v 1.64 2003/06/19 06:52:49 mwedel Exp $";
  */   */
   
 /*  /*
Line 1281
 
Line 1281
 }  }
   
 void npc_call_help(object *op) {  void npc_call_help(object *op) {
     int x,y;      int x,y, mflags;
     object *npc;      object *npc;
       sint16 sx, sy;
       mapstruct *m;
   
     for(x = -3; x < 4; x++)      for(x = -3; x < 4; x++)
  for(y = -3; y < 4; y++) {   for(y = -3; y < 4; y++) {
      if(out_of_map(op->map,op->x+x,op->y+y))       m = op->map;
        sx = op->x + x;
        sy = op->y + y;
        mflags = get_map_flags(m, &m, sx, sy, &sx, &sy);
        /* If nothing alive on this space, no need to search the space. */
        if ((mflags & P_OUT_OF_MAP) || !(mflags & P_IS_ALIVE))
  continue;   continue;
      for(npc = get_map_ob(op->map,op->x+x,op->y+y);npc!=NULL;npc=npc->above)  
        for(npc = get_map_ob(m,sx,sy);npc!=NULL;npc=npc->above)
  if(QUERY_FLAG(npc, FLAG_ALIVE)&&QUERY_FLAG(npc, FLAG_UNAGGRESSIVE))   if(QUERY_FLAG(npc, FLAG_ALIVE)&&QUERY_FLAG(npc, FLAG_UNAGGRESSIVE))
      npc->enemy = op->enemy;       npc->enemy = op->enemy;
  }   }


Legend:
line(s) removed in v.1.63 
line(s) changed
 line(s) added in v.1.64

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