[freeciv-ai] Re: ai hp recovery patch v7
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Per I. Mathisen wrote:
------------------------------------------------------------------------
/**************************************************************************
decides what to do with a military unit.
**************************************************************************/
@@ -2229,7 +2359,10 @@
if (punit->activity != ACTIVITY_IDLE)
handle_unit_activity_request(punit, ACTIVITY_IDLE);
- 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!
|
|