1 | /* |
1 | /* |
2 | * static char *rcsid_spell_attack_c = |
2 | * static char *rcsid_spell_attack_c = |
3 | * "$Id: spell_attack.C,v 1.7 2006/09/03 00:18:42 root Exp $"; |
3 | * "$Id: spell_attack.C,v 1.8 2006/09/07 10:01:58 pippijn 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 |
… | |
… | |
1665 | * from a set of squares surrounding the caster, in a given direction. |
1665 | * from a set of squares surrounding the caster, in a given direction. |
1666 | */ |
1666 | */ |
1667 | |
1667 | |
1668 | void move_swarm_spell(object *op) |
1668 | void move_swarm_spell(object *op) |
1669 | { |
1669 | { |
|
|
1670 | #if 0 |
1670 | static int cardinal_adjust[9] = { -3, -2, -1, 0, 0, 0, 1, 2, 3 }; |
1671 | static int cardinal_adjust[9] = { -3, -2, -1, 0, 0, 0, 1, 2, 3 }; |
1671 | static int diagonal_adjust[10] = { -3, -2, -2, -1, 0, 0, 1, 2, 2, 3 }; |
1672 | static int diagonal_adjust[10] = { -3, -2, -2, -1, 0, 0, 1, 2, 2, 3 }; |
1672 | sint16 target_x, target_y, origin_x, origin_y; |
1673 | sint16 target_x, target_y, origin_x, origin_y; |
1673 | int basedir, adjustdir; |
1674 | int adjustdir; |
1674 | mapstruct *m; |
1675 | mapstruct *m; |
|
|
1676 | #endif |
|
|
1677 | int basedir; |
1675 | object *owner; |
1678 | object *owner; |
1676 | |
1679 | |
1677 | owner = get_owner(op); |
1680 | owner = get_owner(op); |
1678 | if(op->duration == 0 || owner == NULL) { |
1681 | if(op->duration == 0 || owner == NULL) { |
1679 | remove_ob(op); |
1682 | remove_ob(op); |