[CF-Devel] Patch submission: apply item matching bug

crossfire-devel-admin at archives.real-time.com crossfire-devel-admin at archives.real-time.com
Sat Aug 2 11:06:29 CDT 2003


-----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
     
     
    


More information about the crossfire mailing list