Difference for server/time.c from version 1.61 to 1.62


version 1.61 version 1.62
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_time_c =   * static char *rcsid_time_c =
  *    "$Id: time.c,v 1.61 2004/04/10 03:18:54 temitchell Exp $";   *    "$Id: time.c,v 1.62 2004/05/14 05:55:56 mwedel Exp $";
  */   */
   
 /*  /*
Line 842
 
Line 842
 void move_teleporter(object *op) {  void move_teleporter(object *op) {
     object *tmp, *head=op;      object *tmp, *head=op;
     event *evt;      event *evt;
   
     /* if this is a multipart teleporter, handle the other parts      /* if this is a multipart teleporter, handle the other parts
      * The check for speed isn't strictly needed - basically, if       * The check for speed isn't strictly needed - basically, if
      * there is an old multipart teleporter in which the other parts       * there is an old multipart teleporter in which the other parts
Line 860
 
Line 861
     if (!tmp) return;      if (!tmp) return;
   
     if(EXIT_PATH(head)) {      if(EXIT_PATH(head)) {
       if(op->above->type==PLAYER)   if(op->above->type==PLAYER) {
       {  
         /* GROS: Handle for plugin TRIGGER event */          /* GROS: Handle for plugin TRIGGER event */
         if ((evt = find_event(op, EVENT_TRIGGER)) != NULL)       if ((evt = find_event(op, EVENT_TRIGGER)) != NULL) {
         {  
           CFParm CFP;            CFParm CFP;
           CFParm* CFR;            CFParm* CFR;
           int k, l, m;            int k, l, m;
Line 883
 
Line 882
           CFP.Value[8] = &l;            CFP.Value[8] = &l;
           CFP.Value[9] = evt->hook;            CFP.Value[9] = evt->hook;
           CFP.Value[10]= evt->options;            CFP.Value[10]= 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);
             rtn_script = *(int *)(CFR->Value[0]);              rtn_script = *(int *)(CFR->Value[0]);
           }            }
Line 933
 
Line 931
  }   }
  transfer_ob(tmp,EXIT_X(head),EXIT_Y(head),0,head);   transfer_ob(tmp,EXIT_X(head),EXIT_Y(head),0,head);
     }      }
     else      else {
     {  
  /* Random teleporter */   /* Random teleporter */
  /* GROS: Handle for plugin TRIGGER event */   /* GROS: Handle for plugin TRIGGER event */
         if ((evt = find_event(op, EVENT_TRIGGER)) != NULL)          if ((evt = find_event(op, EVENT_TRIGGER)) != NULL) {
  {  
  CFParm CFP;   CFParm CFP;
  CFParm* CFR;   CFParm* CFR;
  int k, l, m;   int k, l, m;
Line 957
 
Line 953
  CFP.Value[8] = &l;   CFP.Value[8] = &l;
  CFP.Value[9] = evt->hook;   CFP.Value[9] = evt->hook;
  CFP.Value[10]= evt->options;   CFP.Value[10]= 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);
  rtn_script = *(int *)(CFR->Value[0]);   rtn_script = *(int *)(CFR->Value[0]);
  }   }


Legend:
line(s) removed in v.1.61 
line(s) changed
 line(s) added in v.1.62

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