Difference for server/time.c from version 1.42 to 1.43


version 1.42 version 1.43
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_time_c =   * static char *rcsid_time_c =
  *    "$Id: time.c,v 1.42 2002/08/14 04:31:07 mwedel Exp $";   *    "$Id: time.c,v 1.43 2002/11/26 08:48:20 garbled Exp $";
  */   */
   
 /*  /*
Line 553
 
Line 553
   
 static void stop_arrow (object *op)  static void stop_arrow (object *op)
 {  {
 #ifdef PLUGINS  
     /* GROS: Handle for plugin stop event */      /* GROS: Handle for plugin stop event */
     if(op->event_hook[EVENT_STOP] != NULL)      if(op->event_hook[EVENT_STOP] != NULL)
     {      {
Line 576
 
Line 575
         if (findPlugin(op->event_plugin[k])>=0)          if (findPlugin(op->event_plugin[k])>=0)
             ((PlugList[findPlugin(op->event_plugin[k])].eventfunc) (&CFP));              ((PlugList[findPlugin(op->event_plugin[k])].eventfunc) (&CFP));
     }      }
 #endif  
     if (op->inv) {      if (op->inv) {
  object *payload = op->inv;   object *payload = op->inv;
  remove_ob (payload);   remove_ob (payload);
Line 797
 
Line 795
     if(EXIT_PATH(head)) {      if(EXIT_PATH(head)) {
       if(op->above->type==PLAYER)        if(op->above->type==PLAYER)
       {        {
 #ifdef PLUGINS  
         /* GROS: Handle for plugin TRIGGER event */          /* GROS: Handle for plugin TRIGGER event */
         if(op->event_hook[EVENT_TRIGGER] != NULL)          if(op->event_hook[EVENT_TRIGGER] != NULL)
         {          {
Line 826
 
Line 823
           }            }
           if (rtn_script!=0) return;            if (rtn_script!=0) return;
         }          }
 #endif  
         enter_exit(op->above, head);          enter_exit(op->above, head);
       }        }
  else   else
Line 840
 
Line 836
      free_object(head);       free_object(head);
      return;       return;
  }   }
 #ifdef PLUGINS  
  /* GROS: Handle for plugin TRIGGER event */   /* GROS: Handle for plugin TRIGGER event */
  if(op->event_hook[EVENT_TRIGGER] != NULL)   if(op->event_hook[EVENT_TRIGGER] != NULL)
  {   {
Line 869
 
Line 864
  }   }
  if (rtn_script!=0) return;   if (rtn_script!=0) return;
  }   }
 #endif  
  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 */
 #ifdef PLUGINS  
  /* GROS: Handle for plugin TRIGGER event */   /* GROS: Handle for plugin TRIGGER event */
  if(op->event_hook[EVENT_TRIGGER] != NULL)   if(op->event_hook[EVENT_TRIGGER] != NULL)
  {   {
Line 904
 
Line 897
  }   }
  if (rtn_script!=0) return;   if (rtn_script!=0) return;
  }   }
 #endif  
  teleport(head, TELEPORTER, tmp);   teleport(head, TELEPORTER, tmp);
  }   }
 }  }
Line 923
 
Line 915
    if(op->above!=NULL) {     if(op->above!=NULL) {
     if(EXIT_PATH(op)) {      if(EXIT_PATH(op)) {
       if(op->above->type==PLAYER) {        if(op->above->type==PLAYER) {
 #ifdef PLUGINS  
       /* GROS: Handle for plugin TRIGGER event */        /* GROS: Handle for plugin TRIGGER event */
       if(op->event_hook[EVENT_TRIGGER] != NULL)        if(op->event_hook[EVENT_TRIGGER] != NULL)
       {        {
Line 952
 
Line 943
         }          }
         if (rtn_script!=0) return;          if (rtn_script!=0) return;
       }        }
 #endif  
  player=op->above;   player=op->above;
  for(walk=op->inv;walk!=NULL;walk=walk->below)    for(walk=op->inv;walk!=NULL;walk=walk->below)
    apply_changes_to_player(player,walk);     apply_changes_to_player(player,walk);
Line 1177
 
Line 1167
     }      }
     return 1;      return 1;
   }    }
 #ifdef PLUGINS  
   /* GROS: Handle for plugin time event */    /* GROS: Handle for plugin time event */
   if(op->event_hook[EVENT_TIME] != NULL)    if(op->event_hook[EVENT_TIME] != NULL)
   {    {
Line 1200
 
Line 1189
     if (findPlugin(op->event_plugin[k])>=0)      if (findPlugin(op->event_plugin[k])>=0)
         ((PlugList[findPlugin(op->event_plugin[k])].eventfunc) (&CFP));          ((PlugList[findPlugin(op->event_plugin[k])].eventfunc) (&CFP));
   }    }
 #endif  
   switch(op->type) {    switch(op->type) {
   case ROD:    case ROD:
   case HORN:    case HORN:


Legend:
line(s) removed in v.1.42 
line(s) changed
 line(s) added in v.1.43

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