[Freeciv-Dev] Re: (PR#2507) incite cost patch
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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)
|
|