version 1.12 | | version 1.13 |
---|
| | |
/* | | /* |
* static char *rcsid_monster_c = | | * static char *rcsid_monster_c = |
* "$Id: monster.c,v 1.12 2000/12/19 06:54:52 peterm Exp $"; | | * "$Id: monster.c,v 1.13 2000/12/24 01:48:20 cvs Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
void communicate(object *op, char *txt) { | | void communicate(object *op, char *txt) { |
object *npc; | | object *npc; |
int i; | | int i; |
for(i = 0; i < 24; i++) | | for(i = 0; i <= SIZEOFFREE2; i++) |
if (!out_of_map(op->map, op->x+freearr_x[i], op->y+freearr_y[i])) | | if (!out_of_map(op->map, op->x+freearr_x[i], op->y+freearr_y[i])) |
for(npc = get_map_ob(op->map,op->x+freearr_x[i],op->y+freearr_y[i]); | | for(npc = get_map_ob(op->map,op->x+freearr_x[i],op->y+freearr_y[i]); |
npc != NULL; npc = npc->above) { | | npc != NULL; npc = npc->above) { |