[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]
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
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.