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: undisclosed-recipients: ;
Subject: [freeciv-ai] Re: (PR#6308) Cleanup of ferry handling
From: "Gregory Berkolaiko" <Gregory.Berkolaiko@xxxxxxxxxxxx>
Date: Thu, 2 Oct 2003 09:55:01 -0700
Reply-to: rt@xxxxxxxxxxxxxx

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.
>  - 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));


    if (punit->ai.ferryboat == FERRY_WANTED) {

I need think on what is the best system.


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