Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2005:
[Freeciv-Dev] (PR#11806) bug in required_tech_helper
Home

[Freeciv-Dev] (PR#11806) bug in required_tech_helper

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#11806) bug in required_tech_helper
From: "Mateusz Stefek" <mstefek@xxxxxxxxx>
Date: Thu, 6 Jan 2005 07:39:59 -0800
Reply-to: bugs@xxxxxxxxxxx

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

> [jdorje - Wed Jan 05 21:52:28 2005]:
> 
> Mateusz Stefek wrote:
> 
> > Since it's no longer true that player(pplayer, A_NONE)==TECH_KNOWN (
> I don't known why)
> 
> I think this is the bug.  This should always be true.  No need to fix
> other code.
> 
> -jason
I agree that the bug should be fixed in the first place, but
look at common/tech.c:195 :

  /* This assert does not work. Triggered by AI players in new
   * games. */
  /* assert(get_invention(pplayer, A_NONE) == TECH_KNOWN); */


Someone has written similar trick already.
--
mateusz



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