Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2005:
[Freeciv-Dev] Re: (PR#12848) AI Guards Allied Cities Forever
Home

[Freeciv-Dev] Re: (PR#12848) AI Guards Allied Cities Forever

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: badamson@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#12848) AI Guards Allied Cities Forever
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Wed, 20 Apr 2005 13:29:55 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12848 >

On Tue, 19 Apr 2005, Benedict Adamson wrote:
> The ai_military_defend function prefers guarding the city that a unit is
> in, even if there are more deserving cities nearby. Therefore, a
> guarding unit that begins defending an allied city will continue to do
> so... apparently forever.
>
> The AI should be more willing to free units from the defence of cities
> that merely belong to allies.

Yes, but this is not the duty of ai_military_defend(), at least not how I
see it. If we have assigned it as a defender, and not set punit->ai.charge
to another city, then ai_military_defense() should read this as "defend
the city you are currently in", above all else, if that is possible.

  - Per





[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Re: (PR#12848) AI Guards Allied Cities Forever, Per I. Mathisen <=