Difference for server/plugins.c from version 1.72 to 1.73


version 1.72 version 1.73
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_plugins_c =   * static char *rcsid_plugins_c =
  *   "$Id: plugins.c,v 1.72 2006/05/20 15:47:48 ryo_saeba Exp $";   *   "$Id: plugins.c,v 1.73 2006/07/02 15:32:35 tchize Exp $";
  */   */
   
 /*****************************************************************************/  /*****************************************************************************/
Line 159
 
Line 159
     player *pl;      player *pl;
   
     if (op->env != NULL) {      if (op->env != NULL) {
         tmp = is_player_inv(op->env);          tmp = get_player_container(op->env);
         if (!tmp) {          if (!tmp) {
             for (pl = first_player; pl; pl = pl->next)              for (pl = first_player; pl; pl = pl->next)
                 if (pl->ob->container == op->env)                  if (pl->ob->container == op->env)
Line 194
 
Line 194
         return;          return;
     }      }
   
     tmp = is_player_inv(op->env);      tmp = get_player_container(op->env);
     if (!tmp) {      if (!tmp) {
         for (pl = first_player; pl; pl = pl->next)          for (pl = first_player; pl; pl = pl->next)
             if (pl->ob->container == op->env)              if (pl->ob->container == op->env)
Line 2050
 
Line 2050
                 player *pl;                  player *pl;
                 op->nrof = iarg;                  op->nrof = iarg;
                 if (op->env != NULL) {                  if (op->env != NULL) {
                     tmp = is_player_inv(op->env);                      tmp = get_player_container(op->env);
                     if (!tmp) {                      if (!tmp) {
                         for (pl = first_player; pl; pl = pl->next)                          for (pl = first_player; pl; pl = pl->next)
                             if (pl->ob->container == op->env)                              if (pl->ob->container == op->env)
Line 2186
 
Line 2186
                 player *pl;                  player *pl;
                 op->weight = iarg;                  op->weight = iarg;
                 if (op->env != NULL) {                  if (op->env != NULL) {
                     tmp = is_player_inv(op->env);                      tmp = get_player_container(op->env);
                     if (!tmp) {                      if (!tmp) {
                         for (pl = first_player; pl; pl = pl->next)                          for (pl = first_player; pl; pl = pl->next)
                             if (pl->ob->container == op->env)                              if (pl->ob->container == op->env)
Line 2676
 
Line 2676
   
     case 3:      case 3:
         op = va_arg(args, object*);          op = va_arg(args, object*);
         rv = is_player_inv(op);          rv = get_player_container(op);
         break;          break;
   
     default:      default:


Legend:
line(s) removed in v.1.72 
line(s) changed
 line(s) added in v.1.73

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