-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Le Vendredi 1 Août 2003 20:43, Nicolas Weeger a écrit : > 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' Indeed more coherent. submitting patch to cvs > > > _______________________________________________ > crossfire-devel mailing list > crossfire-devel at lists.real-time.com > https://mailman.real-time.com/mailman/listinfo/crossfire-devel -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/K+GJHHGOa1Q2wXwRApa+AJ9TqFXHIJhLlpEPerYH7a8T8CpdwgCgvBci lB1HAAVd7WfCwzpkcyY+vso= =rCMd -----END PGP SIGNATURE----- _______________________________________________ crossfire-devel mailing list crossfire-devel at lists.real-time.com https://mailman.real-time.com/mailman/listinfo/crossfire-devel