[freeciv-ai] Re: (PR#10216) AI Builds Too Many Transports
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=10216 >
On Tue, 5 Oct 2004, Benedict Adamson wrote:
> > its seems that kill_something_with function is failing to use the
> > available (free) ferries.
> I'm trying a fix of using aiferry_find_boat instead of find_boat in
> kill_something_with. This seems to fix the problem. I'll test it further
> tomorrow, then submit a patch.
I would rather go the other way. We should manage the boat building on
the centralized level. This will allow k_s_w not care about actually
finding a boat, if it really wants a boat, one would be found/built for
it. It would take take some time to make this system robust, but it is
the way forward I feel.
Among other reasons for it, aiferry_find_boat is a PF-based function and
should not be called too often.
For "centralized boat building" patch see ticket 8992 (I will send in the
latest patch in a minute). Please help me in bringing this patch up
to standards, testing it and using the latests technology (ocean numbers
+ Per's ocean connectivity patch).