[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 Thu, 2 Oct 2003, Gregory Berkolaiko wrote:
> >- 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.
I took it out at first and forgot to put it back in. A mistake, not
intentional.
> 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++;
> }
Eeeee...
- Per
- [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, 2003/10/02
- [freeciv-ai] Re: (PR#6308) Cleanup of ferry handling,
Per I. Mathisen <=
- [freeciv-ai] Re: (PR#6308) Cleanup of ferry handling, Gregory Berkolaiko, 2003/10/05
|
|