? rc ? diff ? msgfmt1.diff ? tech_info1.diff ? tech_fix1.diff ? no_tech_loss1.diff ? check_headers.sh ? test.c ? missing_includes1.diff ? local_warmap131201.diff ? queue ? unit_move_turns1.diff Index: common/tech.c =================================================================== RCS file: /home/freeciv/CVS/freeciv/common/tech.c,v retrieving revision 1.32 diff -u -r1.32 tech.c --- common/tech.c 2002/01/11 13:50:49 1.32 +++ common/tech.c 2002/01/14 11:39:52 @@ -125,13 +125,11 @@ build_required_techs_helper(pplayer, goal, goal); - /* Includes the goal tech */ + /* Include the goal tech */ pplayer->research.inventions[goal].bulbs_required = base_total_bulbs_required(pplayer, goal); + pplayer->research.inventions[goal].num_required_techs = 1; - /* Doesn't include the goal tech */ - pplayer->research.inventions[goal].num_required_techs = 0; - counter = 0; for (i = A_FIRST; i < game.num_tech_types; i++) { if (!is_tech_a_req_for_goal(pplayer, i, goal)) { @@ -414,11 +412,9 @@ } /************************************************************************** - Returns the number of technologies the player need to research to - make the goal technology _reachable_. So to get the benefits of the - goal technology the player has to reseach - "num_unknown_techs_for_goal(...)+1" techs. Technologies are only - counted once. + Returns the number of technologies the player need to research to get + the goal technology. This includes the goal technology. Technologies + are only counted once. **************************************************************************/ int num_unknown_techs_for_goal(struct player *pplayer, Tech_Type_id goal) {