Author: pepeto
Date: Mon Aug 25 17:30:46 2014
New Revision: 26032

URL: http://svn.gna.org/viewcvs/freeciv?rev=26032&view=rev
Log:
Really update the technology step number to reach a goal. A missing test
was causing the process to count all technologies (insluding known ones)
and returns a constant number.

See gna bug #22473

Modified:
    trunk/common/research.c

Modified: trunk/common/research.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/research.c?rev=26032&r1=26031&r2=26032&view=diff
==============================================================================
--- trunk/common/research.c     (original)
+++ trunk/common/research.c     Mon Aug 25 17:30:46 2014
@@ -304,6 +304,10 @@
     techs_researched = presearch->techs_researched;
     advance_req_iterate(valid_advance_by_number(i), preq) {
       Tech_type_id j = advance_number(preq);
+
+      if (TECH_KNOWN == research_invention_state(presearch, j)) {
+        continue;
+      }
 
       if (j != i) {
         BV_SET(presearch->inventions[i].required_techs, j);


_______________________________________________
Freeciv-commits mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to