[freeciv-ai] Re: (PR#8770) AI doesn't let units fortify
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=8770 >
I looked at the savegame and found the problem. This case is rather
special. The poor chariot was surrounded by archers and could not move
anywhere. When it tried, it immediately broke off its goto because it had
nowhere to go. But first it had to lift its fortification so that it could
attempt to move.
This problem will be fixed once we move this code over to pf, since then
we can actually find out whether we can move to the target before we try
to do so.
So I do not think this shows that the AI does not fortify. Looking inside
AI cities, I see clearly that the AI _is_ fortifying properly in the main.
Of course, we still have corner cases to handle.