version 1.19 | | version 1.20 |
---|
| | |
/* | | /* |
* static char *rcsid_move_c = | | * static char *rcsid_move_c = |
* "$Id: move.c,v 1.19 2002/04/21 05:23:20 mwedel Exp $"; | | * "$Id: move.c,v 1.20 2002/08/22 06:49:04 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
if (op->will_apply&4 ) { | | if (op->will_apply&4 ) { |
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->type == EARTHWALL) { | | if (tmp_ob->type == EARTHWALL) { |
hit_player(tmp_ob,5,op,AT_PHYSICAL); /* Tear down the earthwall */ | | hit_player(tmp_ob,5,op,AT_PHYSICAL); /* Tear down the earthwall */ |
return 0; | | return 0; |
| | |
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->above != NULL) { |
if (tmp_ob->type == DOOR) { | | if (tmp_ob == DOOR) { |
hit_player(tmp_ob,9998,op,AT_PHYSICAL); /* Tear down the earthwall */ | | hit_player(tmp_ob,9998,op,AT_PHYSICAL); /* Tear down the earthwall */ |
return 0; | | return 0; |
} | | } |