Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2003:
[Freeciv-Dev] Re: [FreeCiv-Cvs] rfalke: Remove useless tests for A_NONE
Home

[Freeciv-Dev] Re: [FreeCiv-Cvs] rfalke: Remove useless tests for A_NONE

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: [FreeCiv-Cvs] rfalke: Remove useless tests for A_NONE since get_in...
From: Raimar Falke <rf13@xxxxxxxxxxxxxxxxx>
Date: Thu, 9 Jan 2003 18:54:01 +0100

On Thu, Jan 09, 2003 at 08:11:00AM -0800, freeciv@xxxxxxxxxxxxxxxxxxx wrote:
> This is an automated notification of a change to freeciv cvs, 
> on Thu Jan  9 08:03:44 PST 2003 = Thu Jan  9 16:03:44 2003 (GMT)
> by Raimar Falke <rf13@xxxxxxxxxxxxxxxxx>
> 
> ---- Files affected:
> 
> freeciv/common government.c tech.c
> 
> ---- Log message:
>       Tag: HEAD
> 
> Remove useless tests for A_NONE since get_invention(x, A_NONE) is
> always TECH_KNOWN.

Sadly this isn't always true. At the client the A_NONE of an enemy
isn't TECH_KNOWN but TECH_UNKNOWN. The attached patch fixes this.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "At the beginning of the week, we sealed ten BSD programmers
  into a computer room with a single distribution of BSD Unix.
  Upon opening the room after seven days, we found all ten programmers 
  dead, clutching each other's throats, and thirteen new flavors of BSD."

Attachment: tech_fix1.diff
Description: Text document


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Re: [FreeCiv-Cvs] rfalke: Remove useless tests for A_NONE since get_in..., Raimar Falke <=