Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2002:
[Freeciv-Dev] Re: (PR#2507) incite cost patch
Home

[Freeciv-Dev] Re: (PR#2507) incite cost patch

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: per@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#2507) incite cost patch
From: "Raimar Falke via RT" <rt@xxxxxxxxxxxxxx>
Date: Sun, 8 Dec 2002 00:55:38 -0800
Reply-to: rt@xxxxxxxxxxxxxx

On Sat, Dec 07, 2002 at 08:42:07PM -0800, Mike Kaufman via RT wrote:
> On Fri, Dec 06, 2002 at 03:27:26PM -0800, Per I. Mathisen via RT wrote:
> > +
> > +  /* Distance from capital */
> > +  capital = find_palace(city_owner(pcity));
> > +  if (capital) {
> > +    int tmp = map_distance(capital->x, capital->y, pcity->x, pcity->y);
> 
> considering that a modpack could have multiple capital cities, and I
> suppose you want the minimum distance, this could get ugly...

Multiple capitals will break a lot of code. I suspect basically all
capital related code.

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 "Of course, someone who knows more about this will correct me if I'm
  wrong, and someone who knows less will correct me if I'm right."
    -- David Palmer (palmer@xxxxxxxxxxxxxxxxxx)




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