Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2002:
[Freeciv-Dev] Re: (PR#2631) [Fix] ACTIVITY_EXPLORE infinite cycle
Home

[Freeciv-Dev] Re: (PR#2631) [Fix] ACTIVITY_EXPLORE infinite cycle

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Gregory.Berkolaiko@xxxxxxxxxxxx
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#2631) [Fix] ACTIVITY_EXPLORE infinite cycle
From: "Per I. Mathisen via RT" <rt@xxxxxxxxxxxxxx>
Date: Mon, 23 Dec 2002 02:21:34 -0800
Reply-to: rt@xxxxxxxxxxxxxx

On Sun, 22 Dec 2002, Gregory Berkolaiko via RT wrote:
> Attached are two possible fixes for PR#2631.Both work, both are kludges.
>
> Actually, this bug is _very_ rare, because you'd need to manually set a
> AI-controlled unit to be explorer and only then you'd have it.But still
> it is a bug.

I'd prefer a real fix, then. Separate out the
is-there-more-to-explore-or-huts-to-find part of ai_manage_explorer into a
function of its own, which can be called from within
handle_unit_activity_dependencies without risks of recursion. This would
mean a little redesign of ai_manage_explorer, but then, someone was
working on that already...

  - Per





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