[freeciv-ai] Re: patch: don't reevaluate ai govt so often
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Thu, 15 May 2003, Per I. Mathisen wrote:
> New patch attached. I removed the ANALYSE code, since I just posted code
> that is more useful, and I did add Greg's city list size idea, but capped
> it at 5-20 turns.
Can we also implement Greg's second idea: instead of
+ ai->govt_reeval = (ai->govt_reeval + 1) % ai->govt_reeval_turns;
+ ai->govt_reeval = CLIP(5, city_list_size(&pplayer->cities), 20);
+ ai->govt_reeval-- ;
and blast ai->govt_reeval_turns out of existence. Funnily, no other
changes are required.
Also, is your creative indentation an attempt to reduce the patch size?
Don't be so modest please :)
[freeciv-ai] Re: ai govt & generic_city_refresh() fix, Gregory Berkolaiko, 2003/05/12