Author: cazfi
Date: Thu May 11 16:15:22 2017
New Revision: 35507

URL: http://svn.gna.org/viewcvs/freeciv?rev=35507&view=rev
Log:
Restore global_advance_count after AI tech speculation

Reported by wotan <wotan>

See gna bug #24992

Modified:
    trunk/ai/default/aitech.c

Modified: trunk/ai/default/aitech.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/ai/default/aitech.c?rev=35507&r1=35506&r2=35507&view=diff
==============================================================================
--- trunk/ai/default/aitech.c   (original)
+++ trunk/ai/default/aitech.c   Thu May 11 16:15:22 2017
@@ -213,6 +213,7 @@
   adv_want orig_want = dai_city_want(pplayer, pcity, adv, NULL);
   adv_want final_want;
   bool world_knew = game.info.global_advances[tech];
+  int world_count = game.info.global_advance_count;
 
   research_invention_set(pres, tech, TECH_KNOWN);
 
@@ -220,6 +221,7 @@
 
   research_invention_set(pres, tech, old_state);
   game.info.global_advances[tech] = world_knew;
+  game.info.global_advance_count = world_count;
 
   return final_want - orig_want;
 }


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to