ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/spell_attack.C
(Generate patch)

Comparing deliantra/server/server/spell_attack.C (file contents):
Revision 1.7 by root, Sun Sep 3 00:18:42 2006 UTC vs.
Revision 1.8 by pippijn, Thu Sep 7 10:01:58 2006 UTC

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
1668void move_swarm_spell(object *op) 1668void 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);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines