[CF-Devel] Patch submission: apply item matching bug
crossfire-devel-admin at archives.real-time.com
crossfire-devel-admin at archives.real-time.com
Fri Aug 1 13:43:54 CDT 2003
Hello.
The apply command will match the last item in the player's inventory if
given a string not matching anything.
Here's a patch to correct that, for server/c_object.c:
RCS file: /cvsroot/crossfire/crossfire/server/c_object.c,v
retrieving revision 1.49
diff -r1.49 c_object.c
86c86
< if ((tmpmatch=item_matched_string(pl, tmp, params))>=match_val) {
---
> if ((tmpmatch=item_matched_string(pl, tmp, params))>match_val) {
Pretty straightforward. And also will make the behaviour coherent with
find_best_object_match (which does use a > and not a >=).
Nicolas 'Ryo'
_______________________________________________
crossfire-devel mailing list
crossfire-devel at lists.real-time.com
https://mailman.real-time.com/mailman/listinfo/crossfire-devel
More information about the crossfire
mailing list