Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2003:
[Freeciv-Dev] Re: (PR#7099) ai/advdomestic.c calculates foodbox size inc
Home

[Freeciv-Dev] Re: (PR#7099) ai/advdomestic.c calculates foodbox size inc

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: use_less@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#7099) ai/advdomestic.c calculates foodbox size incorrectly
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Sun, 21 Dec 2003 04:58:34 -0800
Reply-to: rt@xxxxxxxxxxx

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

On Mon, 15 Dec 2003, James Canete wrote:
> I noticed in ai/advdomestic.c, line 497, the ai_eval_buildings() function
> doesn't use the city_granary_size() function to calculate foodbox size,
> instead using a simple (x + 1) * city.foodbox equation.This diff
> changes this, but I'm not sure if it's correct, since the value is then
> multiplied by what the code refers to as "some odd factors".

While I think your patch is correct, I am hesistant to change this code,
since it is planned to be replaced in its entirety once general effects
are in.

  - Per




[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Re: (PR#7099) ai/advdomestic.c calculates foodbox size incorrectly, Per I. Mathisen <=