Re: [Freeciv-Dev] (PR#11015) AI Units idle in the ocean

"[email protected]" <[email protected]> Tue, 16 Nov 2004 15:49:56 -0800
Newsgroups gmane.games.freeciv.ai
Message-ID <[email protected]>
<URL: http://rt.freeciv.org/Ticket/Display.html?id=11015 >



[email protected] wrote:

><URL: http://rt.freeciv.org/Ticket/Display.html?id=11015 >
>
>
>    there are two destroyers near Taejon which are idle for a lot of 
>turns. This is a bug that i have seen since many months.
>
>  
>
    It seems that it's the problem of the hunting code trying to hunt 
own units. The debugging messages are:

2: Sargon's Destroyer[306] (62,67)->(-1,-1){0,0} hunting 306(1083449128, 
1362358 44)

    In fact, it's hunting itself!!!!

    By the way, it appears that the code does not check to hunt twice in 
one turn. Once it has killed the hunted unit it gives up...