Difference for server/apply.c from version 1.132 to 1.133


version 1.132 version 1.133
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_apply_c =   * static char *rcsid_apply_c =
  *   "$Id: apply.c,v 1.132 2005/08/10 13:38:31 ryo_saeba Exp $";   *   "$Id: apply.c,v 1.133 2005/08/12 13:46:34 ryo_saeba Exp $";
  */   */
 /*  /*
     CrossFire, A Multiplayer game for X-windows      CrossFire, A Multiplayer game for X-windows
Line 319
 
Line 319
  * really used to determine what space to look at.   * really used to determine what space to look at.
  * Modified to only eat 'nrof' of objects.   * Modified to only eat 'nrof' of objects.
  */   */
 static void eat_item(object *op,char *item, int nrof)  static void eat_item(object *op,const char *item, int nrof)
 {  {
     object *prev;      object *prev;
   
Line 1015
 
Line 1015
  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] = 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)
  {   {
  CFR = (PlugList[findPlugin(evt->plugin)].eventfunc) (&CFP);   CFR = (PlugList[findPlugin(evt->plugin)].eventfunc) (&CFP);
Line 1316
 
Line 1316
     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] = 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)
     {      {
       CFR = (PlugList[findPlugin(evt->plugin)].eventfunc) (&CFP);        CFR = (PlugList[findPlugin(evt->plugin)].eventfunc) (&CFP);
Line 1578
 
Line 1578
         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] = 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 2331
 
Line 2331
     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] = 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)
     {      {
         CFR = (PlugList[findPlugin(evt->plugin)].eventfunc) (&CFP);          CFR = (PlugList[findPlugin(evt->plugin)].eventfunc) (&CFP);


Legend:
line(s) removed in v.1.132 
line(s) changed
 line(s) added in v.1.133

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