[freeciv-ai] Re: (PR#6308) Cleanup of ferry handling
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Wed, 1 Oct 2003, Per I. Mathisen wrote:
>
> As requested, I've hacked on this patch, and here is a new version of it.
>
> CHANGES:
> - replaced ugly boat register. now aidata keeps track of this stuff.
My code was erroneous, yours is non-functional. The only reason to keep
track of the passengers right now is to cut down on boats searching for
customers when there are none available. This is not attempted anymore.
Besides there is a gross mistake of
ai->stats.passengers = fc_calloc(ai->num_continents + 1, sizeof(int));
...and...
if (punit->ai.ferryboat == FERRY_WANTED) {
ai->stats.passengers++;
}
I need think on what is the best system.
G.
- [freeciv-ai] Re: (PR#6308) Cleanup of ferry handling, Per I. Mathisen, 2003/10/01
- [freeciv-ai] Re: (PR#6308) Cleanup of ferry handling, Gregory Berkolaiko, 2003/10/01
- [freeciv-ai] Re: (PR#6308) Cleanup of ferry handling, Per I. Mathisen, 2003/10/01
- [freeciv-ai] Re: (PR#6308) Cleanup of ferry handling, Gregory Berkolaiko, 2003/10/01
- [freeciv-ai] Re: (PR#6308) Cleanup of ferry handling,
Gregory Berkolaiko <=
- [freeciv-ai] Re: (PR#6308) Cleanup of ferry handling, Per I. Mathisen, 2003/10/02
- [freeciv-ai] Re: (PR#6308) Cleanup of ferry handling, Gregory Berkolaiko, 2003/10/05
|
|