version 1.90 | | version 1.91 |
---|
| | |
/* | | /* |
* static char *rcsid_attack_c = | | * static char *rcsid_attack_c = |
* "$Id: attack.c,v 1.90 2003/08/27 00:00:46 temitchell Exp $"; | | * "$Id: attack.c,v 1.91 2003/09/04 06:25:32 temitchell Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
if ( ! simple_attack && op->type == DOOR) { | | if ( ! simple_attack && op->type == DOOR) { |
object *tmp; | | object *tmp; |
for (tmp = op->inv; tmp != NULL; tmp = tmp->below) | | for (tmp = op->inv; tmp != NULL; tmp = tmp->below) |
if (tmp->type == RUNE) { | | if (tmp->type == RUNE || tmp->type == TRAP) { |
spring_trap (tmp, hitter); | | spring_trap (tmp, hitter); |
if (was_destroyed (hitter, hitter_tag) | | if (was_destroyed (hitter, hitter_tag) |
|| was_destroyed (op, op_tag) | | || was_destroyed (op, op_tag) |