Difference for server/monster.c from version 1.83 to 1.84


version 1.83 version 1.84
Line 1
 
Line 1
 /*  /*
  * 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 $";
  */   */
   
 /*  /*
Line 467
 
Line 467
     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
Line 1649
 
Line 1651
     {      {
  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));
Line 1665
 
Line 1667
         {          {
             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));


Legend:
line(s) removed in v.1.83 
line(s) changed
 line(s) added in v.1.84

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:37