Complete.Org: Mailing Lists: Archives: freeciv-ai: June 2004:
[freeciv-ai] (PR#8995) Possible bug in ai_diplomat_bribe_nearby
Home

[freeciv-ai] (PR#8995) Possible bug in ai_diplomat_bribe_nearby

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [freeciv-ai] (PR#8995) Possible bug in ai_diplomat_bribe_nearby
From: "Gregory Berkolaiko" <Gregory.Berkolaiko@xxxxxxxxxxxxx>
Date: Tue, 15 Jun 2004 11:07:39 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=8995 >

See the attached patch.

G.
? ttt.gz
? ai/aisettler.c
? ai/aisettler.h
? data/flags/Makefile
? data/flags/Makefile.in
Index: ai/aidiplomat.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/ai/aidiplomat.c,v
retrieving revision 1.33
diff -u -r1.33 aidiplomat.c
--- ai/aidiplomat.c     25 Feb 2004 20:23:49 -0000      1.33
+++ ai/aidiplomat.c     15 Jun 2004 18:04:33 -0000
@@ -506,7 +506,7 @@
       struct pf_path *path;
 
       MAPSTEP(x, y, pos.x, pos.y, DIR_REVERSE(pos.dir_to_here));
-      path = pf_get_path(map, pos.x, pos.y);
+      path = pf_get_path(map, x, y);
       if (!path || !ai_unit_execute_path(punit, path) 
           || punit->moves_left <= 0) {
         pf_destroy_path(path);

[Prev in Thread] Current Thread [Next in Thread]
  • [freeciv-ai] (PR#8995) Possible bug in ai_diplomat_bribe_nearby, Gregory Berkolaiko <=