version 1.52 | | version 1.53 |
---|
| | |
/* | | /* |
* static char *rcsid_monster_c = | | * static char *rcsid_monster_c = |
* "$Id: monster.c,v 1.52 2002/09/07 21:30:45 mwedel Exp $"; | | * "$Id: monster.c,v 1.53 2002/09/10 05:43:34 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
(QUERY_FLAG(npc->enemy, FLAG_FRIENDLY) || | | (QUERY_FLAG(npc->enemy, FLAG_FRIENDLY) || |
npc->enemy->type == PLAYER || npc->enemy == npc->owner)) | | npc->enemy->type == PLAYER || npc->enemy == npc->owner)) |
npc->enemy = NULL; | | npc->enemy = NULL; |
| | |
else if (!QUERY_FLAG(npc, FLAG_FRIENDLY) && | | else if (!QUERY_FLAG(npc, FLAG_FRIENDLY) && |
(!QUERY_FLAG(npc->enemy, FLAG_FRIENDLY) && npc->enemy->type!=PLAYER)) | | (!QUERY_FLAG(npc->enemy, FLAG_FRIENDLY) && npc->enemy->type!=PLAYER)) |
npc->enemy=NULL; | | npc->enemy=NULL; |
| | |
* as the enemy to attack. | | * as the enemy to attack. |
*/ | | */ |
else if (!QUERY_FLAG(npc->enemy, FLAG_MONSTER) && | | else if (!QUERY_FLAG(npc->enemy, FLAG_MONSTER) && |
!QUERY_FLAG(npc->enemy,FLAG_GENERATOR ) && npc->type!=PLAYER) | | !QUERY_FLAG(npc->enemy,FLAG_GENERATOR) && npc->enemy->type!=PLAYER) |
npc->enemy=NULL; | | npc->enemy=NULL; |
| | |
} | | } |