1 | |
1 | |
2 | /* |
2 | /* |
3 | * static char *rcsid_spell_attack_c = |
3 | * static char *rcsid_spell_attack_c = |
4 | * "$Id: spell_attack.C,v 1.10 2006/09/10 23:24:12 root Exp $"; |
4 | * "$Id: spell_attack.C,v 1.12 2006/09/14 21:16:13 root Exp $"; |
5 | */ |
5 | */ |
6 | |
6 | |
7 | |
7 | |
8 | /* |
8 | /* |
9 | CrossFire, A Multiplayer game for X-windows |
9 | CrossFire, A Multiplayer game for X-windows |
… | |
… | |
185 | { |
185 | { |
186 | remove_ob (op); |
186 | remove_ob (op); |
187 | free_object (op); |
187 | free_object (op); |
188 | return; |
188 | return; |
189 | } |
189 | } |
|
|
190 | |
190 | hit_map (op, 0, op->attacktype, 1); |
191 | hit_map (op, 0, op->attacktype, 1); |
191 | |
192 | |
192 | if (!op->direction) |
193 | if (!op->direction) |
193 | return; |
194 | return; |
194 | |
195 | |
… | |
… | |
1044 | |
1045 | |
1045 | /* This copies a lot of the code from the fire bullet, |
1046 | /* This copies a lot of the code from the fire bullet, |
1046 | * but using the cast_bullet isn't really feasible, |
1047 | * but using the cast_bullet isn't really feasible, |
1047 | * so just set up the appropriate values. |
1048 | * so just set up the appropriate values. |
1048 | */ |
1049 | */ |
1049 | at = find_archetype (SPLINT); |
1050 | at = archetype::find (SPLINT); |
1050 | if (at) |
1051 | if (at) |
1051 | { |
1052 | { |
1052 | for (i = 1; i < 9; i++) |
1053 | for (i = 1; i < 9; i++) |
1053 | { |
1054 | { |
1054 | if (out_of_map (op->map, op->x + freearr_x[i], op->y + freearr_x[i])) |
1055 | if (out_of_map (op->map, op->x + freearr_x[i], op->y + freearr_x[i])) |