version 1.50 | | version 1.51 |
---|
| | |
/* | | /* |
* static char *rcsid_spell_effect_c = | | * static char *rcsid_spell_effect_c = |
* "$Id: spell_effect.c,v 1.50 2001/04/24 08:13:26 mardahl Exp $"; | | * "$Id: spell_effect.c,v 1.51 2001/04/26 05:47:31 mardahl Exp $"; |
*/ | | */ |
| | |
| | |
| | |
if(op->contr->golem!=NULL&&!QUERY_FLAG(op->contr->golem,FLAG_FREED)) { | | if(op->contr->golem!=NULL&&!QUERY_FLAG(op->contr->golem,FLAG_FREED)) { |
control_golem(op->contr->golem,dir); | | control_golem(op->contr->golem,dir); |
return 0; | | return 0; |
} else return 0; /* exit if it's not a player using this spell. */ | | } |
| | if(op->type!=PLAYER) return 0; /* exit if it's not a player using this spell. */ |
/* if no direction specified, pick one */ | | /* if no direction specified, pick one */ |
if(!dir) | | if(!dir) |
dir=find_free_spot(NULL,op->map,op->x,op->y,1,9); | | dir=find_free_spot(NULL,op->map,op->x,op->y,1,9); |