version 1.48 | | version 1.49 |
---|
| | |
/* | | /* |
* static char *rcsid_spell_effect_c = | | * static char *rcsid_spell_effect_c = |
* "$Id: spell_effect.c,v 1.48 2001/04/11 08:39:53 mardahl Exp $"; | | * "$Id: spell_effect.c,v 1.49 2001/04/18 20:17:22 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 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); |