Difference for server/monster.c from version 1.48 to 1.49


version 1.48 version 1.49
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_monster_c =   * static char *rcsid_monster_c =
  *    "$Id: monster.c,v 1.48 2002/09/01 06:32:31 mwedel Exp $";   *    "$Id: monster.c,v 1.49 2002/09/04 05:17:06 mwedel Exp $";
  */   */
   
 /*  /*
Line 264
 
Line 264
     /* enemy should already be on this map, so don't really need to check      /* enemy should already be on this map, so don't really need to check
      * for that.       * for that.
      */       */
     if (rv->distance < QUERY_FLAG(enemy, FLAG_STEALTH)?(radius/2)+1:radius) {      if (rv->distance < (QUERY_FLAG(enemy, FLAG_STEALTH)?(radius/2)+1:radius)) {
  CLEAR_FLAG(op,FLAG_SLEEP);   CLEAR_FLAG(op,FLAG_SLEEP);
  return 1;   return 1;
     }      }
Line 309
 
Line 309
         enemy->attacked_by_count = op->count; /* our tag */          enemy->attacked_by_count = op->count; /* our tag */
     }      }
          
     if(QUERY_FLAG(op, FLAG_SLEEP)||QUERY_FLAG(op, FLAG_BLIND)      if ( QUERY_FLAG(op, FLAG_SLEEP) || QUERY_FLAG(op, FLAG_BLIND) ||
        ||((op->map->darkness>0)&&!QUERY_FLAG(op,FLAG_SEE_IN_DARK)         ((op->map->darkness>0) && !QUERY_FLAG(op,FLAG_SEE_IN_DARK) &&
    &&!QUERY_FLAG(op,FLAG_SEE_INVISIBLE))) {     !QUERY_FLAG(op,FLAG_SEE_INVISIBLE))) {
      if(!check_wakeup(op,enemy,&rv))       if(!check_wakeup(op,enemy,&rv))
             return 0;              return 0;
     }      }


Legend:
line(s) removed in v.1.48 
line(s) changed
 line(s) added in v.1.49

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