Re: (PR#10216) AI Builds Too Many Transports

"Benedict Adamson" <[email protected]>
Newsgroups gmane.games.freeciv.ai
Message-ID <[email protected]>
<URL: http://rt.freeciv.org/Ticket/Display.html?id=10216 >

Benedict Adamson wrote:
...
> 3) That code (kill_something_with)) then checks whether there is a path 
> from the city (were the attacker will begin) and the target (the enemy 
> land unit to be bombarded), using function goto_is_sane. That call is 
> used to decide whether a land attacker needs a ferry; a land attacker 
> will need a ferry if there is no valid (land) path from the city to the 
> target. However, the function is also used for sea attackers. For those 
> units, the kill_something_with function incorrectly concludes that the 
> (naval!) attack unit will need a ferry (go_by_boat becomes TRUE).
...

Fixing that problem reduces the numbers of transports built. However, 
the AI still builds too many transports. I'm investigating further, but 
its seems that kill_something_with function is failing to use the 
available (free) ferries.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.