--- deliantra/server/common/arch.C 2006/08/28 14:05:23 1.5 +++ deliantra/server/common/arch.C 2006/08/29 05:03:54 1.6 @@ -1,6 +1,6 @@ /* * static char *rcsid_arch_c = - * "$Id: arch.C,v 1.5 2006/08/28 14:05:23 root Exp $"; + * "$Id: arch.C,v 1.6 2006/08/29 05:03:54 root Exp $"; */ /* @@ -161,26 +161,6 @@ return create_singularity(name); } - /* GROS - find_best_weapon_used_match and item_matched_string moved there */ -object *find_best_weapon_used_match(object *pl, const char *params) - { - 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 ((QUERY_FLAG(tmp, FLAG_APPLIED))&&(tmp->type==WEAPON)) - { - match_val=tmpmatch; - best=tmp; - }; - } - } - return best; - } - /* This is a subset of the parse_id command. Basically, name can be * a string seperated lists of things to match, with certain keywords. * pl is the player (only needed to set count properly)