1 | /* |
1 | /* |
2 | * static char *rcsid_spell_effect_c = |
2 | * static char *rcsid_spell_effect_c = |
3 | * "$Id: spell_effect.c,v 1.5 2006/05/07 12:41:50 root Exp $"; |
3 | * "$Id: spell_effect.c,v 1.6 2006/05/07 12:49:26 root Exp $"; |
4 | */ |
4 | */ |
5 | |
5 | |
6 | |
6 | |
7 | /* |
7 | /* |
8 | CrossFire, A Multiplayer game for X-windows |
8 | CrossFire, A Multiplayer game for X-windows |
… | |
… | |
703 | /* If the space doesn't block, no wall here to remove |
703 | /* If the space doesn't block, no wall here to remove |
704 | * Don't care too much what it blocks - this allows for |
704 | * Don't care too much what it blocks - this allows for |
705 | * any sort of earthwall/airwall/waterwall, etc |
705 | * any sort of earthwall/airwall/waterwall, etc |
706 | * type effects. |
706 | * type effects. |
707 | */ |
707 | */ |
708 | if (GET_MAP_MOVE_BLOCK(m, sx, sy)) { |
708 | if (GET_MAP_MOVE_BLOCK(m, sx, sy)) |
709 | for(tmp = get_map_ob(m, sx, sy); tmp != NULL; tmp = tmp->above) { |
709 | for (tmp = get_map_ob (m, sx, sy); tmp != NULL; tmp = tmp->above) |
710 | if(tmp&&QUERY_FLAG(tmp, FLAG_TEAR_DOWN)) |
710 | if (QUERY_FLAG (tmp, FLAG_TEAR_DOWN)) |
711 | hit_player(tmp,9998,op,AT_PHYSICAL,0); |
711 | hit_player (tmp, 9998, op, AT_PHYSICAL, 0); |
712 | } |
|
|
713 | } |
|
|
714 | } |
712 | } |
715 | return 1; |
713 | return 1; |
716 | } |
714 | } |
717 | |
715 | |
718 | |
716 | |