Complete.Org: Mailing Lists: Archives: freeciv-ai: August 2002:
[freeciv-ai] Re: ai hp recovery patch v7
Home

[freeciv-ai] Re: ai hp recovery patch v7

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Jordi Negrevernis i Font <jorneg@xxxxxxxxxxx>
Cc: freeciv-ai@xxxxxxxxxxx
Subject: [freeciv-ai] Re: ai hp recovery patch v7
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Tue, 13 Aug 2002 21:46:31 +0000 (GMT)

On Tue, 13 Aug 2002, Jordi Negrevernis i Font wrote:
> >-punit->ai.ai_role = AIUNIT_NONE; /* this can't be right -- Per */
> >+if (!punit->ai.ai_role == AIUNIT_RECOVER_HIT_POINTS) {
> >+  /* this can't be right but leave it like this for now -- Per */
> >+  punit->ai.ai_role = AIUNIT_NONE;
> >+}
> >
>   Be aware that the original code in my recovery_hp6 patch is
> necessary to keep the long term objective for units that go to a city
> without barracks or port. They just will recover only some hitpoints.
> May be this has some interaction with your statistics!

Yes. The above code is just buggy. Not sure if it had any practical
impact, however. It should be pretty much self-correcting.

Yours
Per



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