Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2005:
[Freeciv-Dev] Re: (PR#12850) AI Tries to Reinforce Lost Cities
Home

[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]
To: badamson@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#12850) AI Tries to Reinforce Lost Cities
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Wed, 20 Apr 2005 13:25:29 -0700
Reply-to: bugs@xxxxxxxxxxx

<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





[Prev in Thread] Current Thread [Next in Thread]