[freeciv-ai] Re: ai hp recovery patch v7
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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
|
|