Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2005:
[Freeciv-Dev] Re: (PR#12788) Does a Unit Ever Know its Body Guard?
Home

[Freeciv-Dev] Re: (PR#12788) Does a Unit Ever Know its Body Guard?

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: badamson@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#12788) Does a Unit Ever Know its Body Guard?
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Wed, 13 Apr 2005 15:52:00 -0700
Reply-to: bugs@xxxxxxxxxxx

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

On Wed, 13 Apr 2005, Benedict Adamson wrote:
> Units have fields ai.charge and ai.bodyguard, so charges and guards can
> have a cross reference to each other. However, I can find nowhere in the
> code where the ai.bodyguard field is ever set to the ID of a unit's
> guard (there are several places where it is set to BODYGUARD_NONE or
> BODYGUARD_WANTED).

That is interesting. While the bodyguard field is usually used for finding
jobs, and the charge field usually for managing bodyguards, this might be
a source of some errors in the AI. Can you make a patch?

 - Per





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