1 | /* |
1 | /* |
2 | * static char *rcsid_spell_attack_c = |
2 | * static char *rcsid_spell_attack_c = |
3 | * "$Id: spell_attack.C,v 1.1 2006/08/13 17:16:04 elmex Exp $"; |
3 | * "$Id: spell_attack.C,v 1.2 2006/08/15 15:00:20 elmex 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 |
… | |
… | |
405 | LOG (llevError, "BUG: explode_bullet(): op out of map\n"); |
405 | LOG (llevError, "BUG: explode_bullet(): op out of map\n"); |
406 | remove_ob (op); |
406 | remove_ob (op); |
407 | free_object (op); |
407 | free_object (op); |
408 | return; |
408 | return; |
409 | } |
409 | } |
|
|
410 | |
|
|
411 | if (get_map_flags (op->map, NULL, op->x, op->y, NULL, NULL) & P_SAFE_MAP) |
|
|
412 | { |
|
|
413 | remove_ob (op); |
|
|
414 | free_object (op); |
|
|
415 | return; |
|
|
416 | } |
410 | |
417 | |
411 | if (op->attacktype) { |
418 | if (op->attacktype) { |
412 | hit_map (op, 0, op->attacktype, 1); |
419 | hit_map (op, 0, op->attacktype, 1); |
413 | if (was_destroyed (op, op_tag)) |
420 | if (was_destroyed (op, op_tag)) |
414 | return; |
421 | return; |