Complete.Org: Mailing Lists: Archives: freeciv-ai: June 2004:
[freeciv-ai] Re: Stop ferries from yoyo-ing between cities
Home

[freeciv-ai] Re: Stop ferries from yoyo-ing between cities

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Per Inge Mathisen <per@xxxxxxxxxxx>
Cc: freeciv-ai@xxxxxxxxxxx
Subject: [freeciv-ai] Re: Stop ferries from yoyo-ing between cities
From: Gregory Berkolaiko <Gregory.Berkolaiko@xxxxxxxxxxxxx>
Date: Sat, 12 Jun 2004 18:42:09 -0500 (CDT)

On Fri, 11 Jun 2004, Per Inge Mathisen wrote:

> I noticed that ferries tend to yoyo between cities that need them for
> their future production, causing these cities to shift between producing
> ferries and their actual production every other turn. This patch fixes
> this.

I don't think this patch fixes anything broken.  If ferry's present
location needs a boat, the ferry will stay there.  The only case when it
will go for another city is if this other city is about to finish its
build (and thus has a higher priority).

If this behaviour is unwanted, it can be fixed by removing some of the
checks in the body of the function.

I tend to think that yoyoying is a consequence of the city production
yoyoing.  However, if the yoyoing has a constant period, there might be
deep bugs inside.

G.



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