Complete.Org: Mailing Lists: Archives: freeciv-ai: October 2002:
[freeciv-ai] Re: uploaded new versions of teams and massive AI patches
Home

[freeciv-ai] Re: uploaded new versions of teams and massive AI patches

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "Per I. Mathisen" <per@xxxxxxxxxxx>
Cc: Mike Kaufman <kaufman@xxxxxxxxxxxxxxxxxxxxxx>, Freeciv AI development <freeciv-ai@xxxxxxxxxxx>
Subject: [freeciv-ai] Re: uploaded new versions of teams and massive AI patches
From: Gregory Berkolaiko <Gregory.Berkolaiko@xxxxxxxxxxxx>
Date: Thu, 17 Oct 2002 17:55:04 +0100 (BST)

On Wed, 16 Oct 2002, Per I. Mathisen wrote:

> On Wed, 16 Oct 2002, Gregory Berkolaiko wrote:
> > Oh...I am not sure I can do it easily.  I'll try to find the change I
> > made though, it might be easier...
> 
> Please do.

Attached is a patch of my server/aigoto.c against your server/aigoto.c
(I preserved the changes introduced by you which were making functions 
static).  Since I went into big hacking mode, they include:

* One bugfix (reported by Christian Knoke).
* Various changes requested (maybe implicitly) by Mike:
- Removed "inline"
- Made vars lowercase
- Made refuel point list dynamically allocated, in a way (the list memory 
is never freed, recycled and extended on demand)
- Made wrappers for access to listed refuel points
- Store refuel points in the priority queue by their index in the list, 
not by the pointer -- this is necessary so that priority queue can be 
separated (not yet done, but easy change) and reused in path_finding.

Tested, seems to work.  Must run now.

G.

Attachment: air_update2.diff
Description: Text document


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