Author: cazfi Date: Sat Nov 19 21:44:02 2016 New Revision: 34580 URL: http://svn.gna.org/viewcvs/freeciv?rev=34580&view=rev Log: Give Future Tech as cheapest free tech when player already is researching those.
bug #25312 Modified: branches/S2_6/server/techtools.c Modified: branches/S2_6/server/techtools.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/techtools.c?rev=34580&r1=34579&r2=34580&view=diff ============================================================================== --- branches/S2_6/server/techtools.c (original) +++ branches/S2_6/server/techtools.c Sat Nov 19 21:44:02 2016 @@ -881,7 +881,7 @@ { int cheapest_cost = -1; int cheapest_amount = 0; - Tech_type_id cheapest = A_NONE; + Tech_type_id cheapest = A_FUTURE; /* If no real tech is found to be missing */ advance_index_iterate(A_FIRST, i) { if (research_invention_state(presearch, i) == TECH_PREREQS_KNOWN) { @@ -896,6 +896,7 @@ } } } advance_index_iterate_end; + return cheapest; } _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits