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


version 1.47 version 1.48
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_c_object_c =   * static char *rcsid_c_object_c =
  *   "$Id: c_object.c,v 1.47 2003/02/25 07:18:07 mwedel Exp $";   *   "$Id: c_object.c,v 1.48 2003/04/02 08:13:26 mwedel Exp $";
  */   */
 /*  /*
     CrossFire, A Multiplayer game for X-windows      CrossFire, A Multiplayer game for X-windows
Line 72
 
Line 72
     }      }
     return best;      return best;
 }  }
   /* Simlilar to find_best_object_match , but accepts an
    * additional parameter for apply -u , and apply -a to
    * only unapply applied , or apply unapplied objects
    */
   static object *find_best_apply_object_match(object *pl, char *params, enum apply_flag aflag)
   {
       object *tmp, *best=NULL;
       int match_val=0,tmpmatch;
   
       for (tmp=pl->inv; tmp; tmp=tmp->below) {
    if (tmp->invisible) continue;
    if ((tmpmatch=item_matched_string(pl, tmp, params))>=match_val) {
      if ((aflag==AP_APPLY) && (QUERY_FLAG(tmp,FLAG_APPLIED))) continue;
      if ((aflag==AP_UNAPPLY) && (!QUERY_FLAG(tmp,FLAG_APPLIED))) continue;
        match_val=tmpmatch;
        best=tmp;
    }
       }
       return best;
   }
   
 /*  /*
  * Notes about item creation:   * Notes about item creation:
Line 426
 
Line 446
     }      }
     while (*params==' ') params++;      while (*params==' ') params++;
   
     inv=find_best_object_match(op, params);      inv=find_best_apply_object_match(op, params, aflag);
     if (inv) {      if (inv) {
  player_apply(op,inv,aflag,0);   player_apply(op,inv,aflag,0);
     } else      } else


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

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