version 1.49 | | version 1.50 |
---|
| | |
/* | | /* |
* static char *rcsid_c_object_c = | | * static char *rcsid_c_object_c = |
* "$Id: c_object.c,v 1.49 2003/06/26 11:27:43 gros Exp $"; | | * "$Id: c_object.c,v 1.50 2003/08/02 16:02:50 tchize Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
| | |
for (tmp=pl->inv; tmp; tmp=tmp->below) { | | for (tmp=pl->inv; tmp; tmp=tmp->below) { |
if (tmp->invisible) continue; | | if (tmp->invisible) continue; |
if ((tmpmatch=item_matched_string(pl, tmp, params))>=match_val) { | | if ((tmpmatch=item_matched_string(pl, tmp, params))>match_val) { |
if ((aflag==AP_APPLY) && (QUERY_FLAG(tmp,FLAG_APPLIED))) continue; | | if ((aflag==AP_APPLY) && (QUERY_FLAG(tmp,FLAG_APPLIED))) continue; |
if ((aflag==AP_UNAPPLY) && (!QUERY_FLAG(tmp,FLAG_APPLIED))) continue; | | if ((aflag==AP_UNAPPLY) && (!QUERY_FLAG(tmp,FLAG_APPLIED))) continue; |
match_val=tmpmatch; | | match_val=tmpmatch; |