version 1.10 | | version 1.11 |
---|
| | |
/* | | /* |
* static char *rcsid_apply_c = | | * static char *rcsid_apply_c = |
* "$Id: apply.c,v 1.10 2000/04/12 06:38:04 cvs Exp $"; | | * "$Id: apply.c,v 1.11 2000/04/22 07:16:40 cvs Exp $"; |
*/ | | */ |
/* | | /* |
CrossFire, A Multiplayer game for X-windows | | CrossFire, A Multiplayer game for X-windows |
| | |
} | | } |
} else { /* not applied */ | | } else { /* not applied */ |
if (sack->slaying) { /* it's locked */ | | if (sack->slaying) { /* it's locked */ |
tmp = FindKey(sack, op->inv); | | tmp = find_key(op, op, sack); |
if (tmp) { | | if (tmp) { |
sprintf (buf, "You unlock %s with %s.", query_name(sack), query_name(tmp)); | | sprintf (buf, "You unlock %s with %s.", query_name(sack), query_name(tmp)); |
SET_FLAG (sack, FLAG_APPLIED); | | SET_FLAG (sack, FLAG_APPLIED); |
| | |
*/ | | */ |
| | |
if (sack->slaying) { /* it's locked */ | | if (sack->slaying) { /* it's locked */ |
tmp=FindKey(sack, op->inv); | | tmp=find_key(op, op, sack); |
if (tmp) { | | if (tmp) { |
new_draw_info_format(NDI_UNIQUE, 0, op, "You unlock %s with %s.", query_name(sack), query_name(tmp)); | | new_draw_info_format(NDI_UNIQUE, 0, op, "You unlock %s with %s.", query_name(sack), query_name(tmp)); |
} else { | | } else { |