version 1.68 | | version 1.69 |
---|
| | |
/* | | /* |
* static char *rcsid_monster_c = | | * static char *rcsid_monster_c = |
* "$Id: monster.c,v 1.68 2004/03/28 15:34:15 ryo_saeba Exp $"; | | * "$Id: monster.c,v 1.69 2004/04/14 07:24:30 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
return; | | return; |
} | | } |
| | |
void check_earthwalls(object *op, int x, int y) { | | void check_earthwalls(object *op, mapstruct *m, int x, int y) { |
object *tmp; | | object *tmp; |
for (tmp = get_map_ob(op->map, x, y); tmp!=NULL; tmp=tmp->above) { | | for (tmp = get_map_ob(m, x, y); tmp!=NULL; tmp=tmp->above) { |
if (tmp->type == EARTHWALL) { | | if (tmp->type == EARTHWALL) { |
hit_player(tmp,op->stats.dam,op,AT_PHYSICAL); | | hit_player(tmp,op->stats.dam,op,AT_PHYSICAL); |
return; | | return; |
| | |
} | | } |
} | | } |
| | |
void check_doors(object *op, int x, int y) { | | void check_doors(object *op, mapstruct *m, int x, int y) { |
object *tmp; | | object *tmp; |
for (tmp = get_map_ob(op->map, x, y); tmp!=NULL; tmp=tmp->above) { | | for (tmp = get_map_ob(m, x, y); tmp!=NULL; tmp=tmp->above) { |
if (tmp->type == DOOR) { | | if (tmp->type == DOOR) { |
hit_player(tmp,1000,op,AT_PHYSICAL); | | hit_player(tmp,1000,op,AT_PHYSICAL); |
return; | | return; |