version 1.20 | | version 1.21 |
---|
| | |
/* | | /* |
* static char *rcsid_move_c = | | * static char *rcsid_move_c = |
* "$Id: move.c,v 1.20 2002/08/22 06:49:04 mwedel Exp $"; | | * "$Id: move.c,v 1.21 2002/08/26 07:14:11 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
} | | } |
if (op->will_apply&8 ) { | | if (op->will_apply&8 ) { |
tmp_ob=get_map_ob(op->map,op->x+freearr_x[dir],op->y+freearr_y[dir]); | | tmp_ob=get_map_ob(op->map,op->x+freearr_x[dir],op->y+freearr_y[dir]); |
while(tmp_ob->above != NULL) { | | while(tmp_ob != NULL) { |
if (tmp_ob == DOOR) { | | if (tmp_ob->type == DOOR) { |
hit_player(tmp_ob,9998,op,AT_PHYSICAL); /* Tear down the earthwall */ | | hit_player(tmp_ob,9998,op,AT_PHYSICAL); /* Tear down the door */ |
return 0; | | return 0; |
} | | } |
tmp_ob = tmp_ob->above; /* To prevent endless loop */ | | tmp_ob = tmp_ob->above; /* To prevent endless loop */ |