version 1.25 | | version 1.26 |
---|
| | |
/* | | /* |
* static char *rcsid_spell_attack_c = | | * static char *rcsid_spell_attack_c = |
* "$Id: spell_attack.c,v 1.25 2005/10/30 00:16:56 akirschbaum Exp $"; | | * "$Id: spell_attack.c,v 1.26 2005/11/01 10:08:17 akirschbaum Exp $"; |
*/ | | */ |
| | |
| | |
| | |
| | |
if (op->env) { | | if (op->env) { |
object *env; | | object *env; |
for (env = op; env->env != NULL; env = env->env) ; | | |
| | env = object_get_env_recursive(op); |
if (env->map == NULL || out_of_map (env->map, env->x, env->y)) { | | if (env->map == NULL || out_of_map (env->map, env->x, env->y)) { |
LOG (llevError, "BUG: explode_bullet(): env out of map\n"); | | LOG (llevError, "BUG: explode_bullet(): env out of map\n"); |
remove_ob (op); | | remove_ob (op); |
| | |
if(op->state!=NUM_ANIMATIONS(op)-1) | | if(op->state!=NUM_ANIMATIONS(op)-1) |
return; | | return; |
| | |
for(env=op;env->env!=NULL;env=env->env); | | env = object_get_env_recursive(op); |
| | |
if (op->env) { | | if (op->env) { |
if (env->map == NULL) | | if (env->map == NULL) |