Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2005:
[Freeciv-Dev] (PR#13146) got_a_tech for future techs is incomplete?
Home

[Freeciv-Dev] (PR#13146) got_a_tech for future techs is incomplete?

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#13146) got_a_tech for future techs is incomplete?
From: "Jason Dorje Short" <jdorje@xxxxxxxxx>
Date: Thu, 19 May 2005 18:16:40 -0700
Reply-to: bugs@xxxxxxxxxxx

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

got_a_tech is called when a tech is stolen.  For future techs the
following code is called

  if (j == 0)  {
    /* we've moved on to future tech */
    if (target->research->future_tech > pplayer->research->future_tech) {
      found_new_future_tech(pplayer);
      stolen_tech
        = game.control.num_tech_types + pplayer->research->future_tech;
    } else {
      return; /* nothing to learn here, move on */
    }
    return;
  } else {

but the "return" at the end of this means none of the code below
(notification, signal emission, gamelog, etc.) is executed.  In fact the
stolen_tech value set above (the value of which I don't understand) is
never used.

-jason





[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#13146) got_a_tech for future techs is incomplete?, Jason Dorje Short <=