version 1.48 | | version 1.49 |
---|
| | |
/* | | /* |
* 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 $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
/* 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; |
} | | } |
| | |
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; |
} | | } |