Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2005:
[Freeciv-Dev] Re: (PR#14326) Bug: Not informed of tech found in hut
Home

[Freeciv-Dev] Re: (PR#14326) Bug: Not informed of tech found in hut

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: himasaram@xxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#14326) Bug: Not informed of tech found in hut
From: "Mateusz Stefek" <mstefek@xxxxxxxxx>
Date: Fri, 14 Oct 2005 12:21:06 -0700
Reply-to: bugs@xxxxxxxxxxx

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

Dnia 2005-10-14 20:58:28, Daniel Markstedt napisał(a):
> 
> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=14326 >
> 
> When getting a tech from a hut, the news is very often not passed to
> the message window. Checking the science tab reveals that a new tech
> actually has been received, but no message is received.
> 
> This is a problem introduced in dev version and has been around the
> month or so I've been trying out various versions of it.
> 
> Running on OSX 10.3.9.
> 
> Daniel

This seems impossible looking at hut_get_tech():

/**************************************************************************
   Get a tech from entering a hut.
**************************************************************************/
static void hut_get_tech(struct unit *punit)
{
   struct player *pplayer = unit_owner(punit);
   Tech_type_id new_tech;
   const char* tech_name;

   new_tech = give_random_free_tech(pplayer);

   tech_name = get_tech_name(pplayer, new_tech);
   notify_player(pplayer, punit->tile, E_HUT_TECH,
                   _("You found %s in ancient scrolls of wisdom."),
                   tech_name);
   script_signal_emit("tech_researched", 3,
                     API_TYPE_TECH_TYPE, &advances[new_tech],
                     API_TYPE_PLAYER, pplayer,
                     API_TYPE_STRING, "hut");
   gamelog(GAMELOG_TECH, pplayer, NULL, new_tech);
   notify_embassies(pplayer, NULL, NULL, E_TECH_GAIN,
                   _("The %s have acquired %s"
                     " from ancient scrolls of wisdom."),
                   get_nation_name_plural(pplayer->nation), tech_name);
}

Strange.

--
mateusz






[Prev in Thread] Current Thread [Next in Thread]