Complete.Org: Mailing Lists: Archives: freeciv-ai: October 2003:
[freeciv-ai] Re: (PR#6308) Cleanup of ferry handling

[freeciv-ai] Re: (PR#6308) Cleanup of ferry handling

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Gregory.Berkolaiko@xxxxxxxxxxxx
Subject: [freeciv-ai] Re: (PR#6308) Cleanup of ferry handling
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Thu, 2 Oct 2003 12:54:58 -0700
Reply-to: rt@xxxxxxxxxxxxxx

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

> 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++;
>   }


  - Per

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