[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]
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
|
|