[Freeciv-Dev] Re: (PR#12850) AI Tries to Reinforce Lost Cities
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12850 >
On Tue, 19 Apr 2005, Benedict Adamson wrote:
> ai_military_defend should check for lost cities, and clear the
Another good catch.
+++ ai/aiunit.c 20 Apr 2005 20:24:30 -0000
@@ -1029,8 +1029,9 @@
CHECK_UNIT(punit);
- if (!pcity) {
+ if (!pcity || pcity->owner != pplayer->player_no) {
pcity = punit->tile->city;
+ punit->ai.charge = 0; /* clear duty */
}
- Per
- [Freeciv-Dev] Re: (PR#12850) AI Tries to Reinforce Lost Cities,
Per I. Mathisen <=
|
|