Difference for server/c_object.c from version 1.48 to 1.49


version 1.48 version 1.49
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_c_object_c =   * static char *rcsid_c_object_c =
  *   "$Id: c_object.c,v 1.48 2003/04/02 08:13:26 mwedel Exp $";   *   "$Id: c_object.c,v 1.49 2003/06/26 11:27:43 gros Exp $";
  */   */
 /*  /*
     CrossFire, A Multiplayer game for X-windows      CrossFire, A Multiplayer game for X-windows
Line 863
 
Line 863
 {  {
     char buf[MAX_BUF];      char buf[MAX_BUF];
     object *floor;      object *floor;
       event *evt;
   
     if (QUERY_FLAG(tmp, FLAG_NO_DROP)) {      if (QUERY_FLAG(tmp, FLAG_NO_DROP)) {
 #if 0  #if 0
Line 901
 
Line 902
     } else      } else
       remove_ob (tmp);        remove_ob (tmp);
       /* GROS: Handle for plugin drop event */        /* GROS: Handle for plugin drop event */
       if(tmp->event_hook[EVENT_DROP] != NULL)        if ((evt = find_event(tmp, EVENT_DROP)) != NULL)
       {        {
         CFParm CFP;          CFParm CFP;
         CFParm *CFR;          CFParm *CFR;
Line 918
 
Line 919
         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] = tmp->event_hook[k];          CFP.Value[9] = evt->hook;
         CFP.Value[10]= tmp->event_options[k];          CFP.Value[10]= evt->options;
         if (findPlugin(tmp->event_plugin[k])>=0)          if (findPlugin(evt->plugin)>=0)
         {          {
           CFR = ((PlugList[findPlugin(tmp->event_plugin[k])].eventfunc) (&CFP));            CFR = ((PlugList[findPlugin(evt->plugin)].eventfunc) (&CFP));
           rtn_script = *(int *)(CFR->Value[0]);            rtn_script = *(int *)(CFR->Value[0]);
           if (rtn_script!=0) return;            if (rtn_script!=0) return;
         }          }


Legend:
line(s) removed in v.1.48 
line(s) changed
 line(s) added in v.1.49

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