<URL: http://bugs.freeciv.org/Ticket/Display.html?id=38406 >

On 3/19/07, Marko Lindqvist <[EMAIL PROTECTED]> wrote:
>
>  Attached patch makes sure that tech want is given to reachable tech.

 Correct patch


 - ML

diff -Nurd -X.diff_ignore freeciv/ai/aitech.c freeciv/ai/aitech.c
--- freeciv/ai/aitech.c	2007-03-05 21:11:52.000000000 +0200
+++ freeciv/ai/aitech.c	2007-03-19 02:06:13.000000000 +0200
@@ -284,7 +284,7 @@
 	} requirement_vector_iterate_end;
       }
 
-      if (cost < best_cost) {
+      if (cost < best_cost && tech_is_available(pplayer, itech)) {
         best_tech = itech;
         best_cost = cost;
         best_unit = iunit;
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to