Difference for server/player.c from version 1.128 to 1.129


version 1.128 version 1.129
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_player_c =   * static char *rcsid_player_c =
  *   "$Id: player.c,v 1.128 2003/04/15 05:57:59 mwedel Exp $";   *   "$Id: player.c,v 1.129 2003/06/26 11:27:43 gros Exp $";
  */   */
   
 /*  /*
Line 2353
 
Line 2353
     int killed_script_rtn; /* GROS: For script return value */      int killed_script_rtn; /* GROS: For script return value */
     CFParm CFP;      CFParm CFP;
     int evtid;      int evtid;
       event *evt;
     if(save_life(op))      if(save_life(op))
  return;   return;
   
Line 2395
 
Line 2396
       return;        return;
     }      }
 /* GROS: Handle for plugin death event */  /* GROS: Handle for plugin death event */
   if(op->event_hook[EVENT_DEATH] != NULL)    if ((evt = find_event(op, EVENT_DEATH)) != NULL)
   {    {
     CFParm* CFR;      CFParm* CFR;
     int k, l, m;      int k, l, m;
Line 2411
 
Line 2412
     CFP.Value[6] = &m;      CFP.Value[6] = &m;
     CFP.Value[7] = &m;      CFP.Value[7] = &m;
     CFP.Value[8] = &l;      CFP.Value[8] = &l;
     CFP.Value[9] = op->event_hook[k];      CFP.Value[9] = evt->hook;
     CFP.Value[10]= op->event_options[k];      CFP.Value[10]= evt->options;
     if (findPlugin(op->event_plugin[k])>=0)      if (findPlugin(evt->plugin)>=0)
     {      {
         CFR = (PlugList[findPlugin(op->event_plugin[k])].eventfunc) (&CFP);          CFR = (PlugList[findPlugin(evt->plugin)].eventfunc) (&CFP);
         killed_script_rtn = *(int *)(CFR->Value[0]);          killed_script_rtn = *(int *)(CFR->Value[0]);
         free(CFR);          free(CFR);
         if (killed_script_rtn)          if (killed_script_rtn)


Legend:
line(s) removed in v.1.128 
line(s) changed
 line(s) added in v.1.129

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