version 1.18 | | version 1.19 |
---|
| | |
/* | | /* |
* static char *rcsid_monster_c = | | * static char *rcsid_monster_c = |
* "$Id: monster.c,v 1.18 2001/04/13 04:13:58 mwedel Exp $"; | | * "$Id: monster.c,v 1.19 2001/04/21 04:26:09 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
int monster_use_bow(object *head, object *part, object *pl, int dir) { | | int monster_use_bow(object *head, object *part, object *pl, int dir) { |
object *bow, *arrow, *owner; | | object *bow, *arrow, *owner; |
| | int tag; |
| | |
if(!(dir=path_to_player(part,pl,0))) | | if(!(dir=path_to_player(part,pl,0))) |
return 0; | | return 0; |
if(QUERY_FLAG(head,FLAG_CONFUSED)) | | if(QUERY_FLAG(head,FLAG_CONFUSED)) |
| | |
SET_FLAG(arrow, FLAG_FLYING); | | SET_FLAG(arrow, FLAG_FLYING); |
SET_FLAG(arrow, FLAG_FLY_ON); | | SET_FLAG(arrow, FLAG_FLY_ON); |
SET_FLAG(arrow, FLAG_WALK_ON); | | SET_FLAG(arrow, FLAG_WALK_ON); |
| | tag = arrow->count; |
insert_ob_in_map(arrow,head->map,head); | | insert_ob_in_map(arrow,head->map,head); |
| | if (!was_destroyed(arrow, tag)) |
move_arrow(arrow); | | move_arrow(arrow); |
return 1; | | return 1; |
} | | } |