version 1.83 | | version 1.84 |
---|
| | |
/* | | /* |
* static char *rcsid_monster_c = | | * static char *rcsid_monster_c = |
* "$Id: monster.c,v 1.83 2005/08/12 08:18:59 ryo_saeba Exp $"; | | * "$Id: monster.c,v 1.84 2005/08/12 13:46:34 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
if ( (op->race != NULL)&& strcmp(op->race,"doppleganger") == 0) | | if ( (op->race != NULL)&& strcmp(op->race,"doppleganger") == 0) |
{ | | { |
op->face = enemy->face; | | op->face = enemy->face; |
strcpy(op->name,enemy->name); | | if (op->name) |
| | free_string(op->name); |
| | add_refcount(op->name = enemy->name); |
} | | } |
| | |
/* Calculate range information for closest body part - this | | /* Calculate range information for closest body part - this |
| | |
{ | | { |
CFP.Value[2] = npc; | | CFP.Value[2] = npc; |
CFP.Value[3] = NULL; | | CFP.Value[3] = NULL; |
CFP.Value[9] = evt->hook; | | CFP.Value[9] = (void*)evt->hook; |
CFP.Value[10]= evt->options; | | CFP.Value[10]= (void*)evt->options; |
if (findPlugin(evt->plugin)>=0) | | if (findPlugin(evt->plugin)>=0) |
{ | | { |
((PlugList[findPlugin(evt->plugin)].eventfunc) (&CFP)); | | ((PlugList[findPlugin(evt->plugin)].eventfunc) (&CFP)); |
| | |
{ | | { |
CFP.Value[2] = cobj; | | CFP.Value[2] = cobj; |
CFP.Value[3] = npc; | | CFP.Value[3] = npc; |
CFP.Value[9] = evt->hook; | | CFP.Value[9] = (void*)evt->hook; |
CFP.Value[10]= evt->options; | | CFP.Value[10]= (void*)evt->options; |
if (findPlugin(evt->plugin)>=0) | | if (findPlugin(evt->plugin)>=0) |
{ | | { |
((PlugList[findPlugin(evt->plugin)].eventfunc) (&CFP)); | | ((PlugList[findPlugin(evt->plugin)].eventfunc) (&CFP)); |