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 03:22:30 -0800
Reply-to: rt@xxxxxxxxxxxxxx

On Mon, 23 Dec 2002, Per I. Mathisen wrote:
> > 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.

I forgot to mention that I had already written the code to implement this.
Whether a continent is fully explored is found in the bool array
ai->explore.continent. The code for this is in ai/aidata.c

  - Per




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