Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2004:
[Freeciv-Dev] Re: (PR#9480) Re: [freeciv-ai] A TODO list for AI (fwd)
Home

[Freeciv-Dev] Re: (PR#9480) Re: [freeciv-ai] A TODO list for AI (fwd)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: per@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#9480) Re: [freeciv-ai] A TODO list for AI (fwd)
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 22 Jul 2004 18:10:14 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=9480 >

Per I. Mathisen wrote:
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=9480 >
> 
> Forwarding to RT, since this patch is worth considering. Although the size
> should not be hardcoded like this.

> Index: common/aicore/cm.c
> ===================================================================
> RCS file: /home/freeciv/CVS/freeciv/common/aicore/cm.c,v
> retrieving revision 1.20
> diff -b -u -p -r1.20 cm.c
> --- common/aicore/cm.c        26 Feb 2004 04:05:10 -0000      1.20
> +++ common/aicore/cm.c        14 Apr 2004 21:31:38 -0000
> @@ -478,7 +478,7 @@ static void copy_stats(struct city *pcit
>    result->surplus[SCIENCE] = result->production[SCIENCE];
>  
>    result->disorder = city_unhappy(pcity);
> -  result->happy = city_happy(pcity);
> +  result->happy = city_happy(pcity) && (pcity->size >= 3);
>  }
>  
>  /****************************************************************************

Shouldn't we just change city_happy to do the size check?

jason




[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Re: (PR#9480) Re: [freeciv-ai] A TODO list for AI (fwd), Jason Short <=