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

[freeciv-ai] Re: hp recovery patch

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-ai@xxxxxxxxxxx
Subject: [freeciv-ai] Re: hp recovery patch
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Wed, 4 Dec 2002 17:32:32 +0000 (GMT)

On Wed, 4 Dec 2002, Mike Kaufman wrote:
> I would prefer that changes like this not be made since they would have to
> be redone almost in their entirely for general effects. I would suggest
> combining these two functions

Ok, then I suggest the attached patch is committed instead, which should
play nice to general effects.

Thanks for suggesting this, the code is much better now.

On Wed, 4 Dec 2002, Mike Kaufman wrote:
> oh, and I would like the function to be called:
>
> select_nearest_recovery...() instead of find_...
>
> as the find_ version tends to make you think we're returning the location
> rather than putting that location into goto_dest...

Well, I changed that in the patch... so now it returns the best pcity.

  - Per

Attachment: hprecovern2.diff
Description: Text document


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