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: "Mike Kaufman via RT" <rt@xxxxxxxxxxxxxx>
Date: Sat, 7 Dec 2002 20:42:07 -0800
Reply-to: rt@xxxxxxxxxxxxxx

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

> +    dist = MIN(32, tmp);
> +  } else {
> +    /* No capital? Take max penalty! */
> +    dist = 32;
> +  }
> +  if (city_got_building(pcity, B_COURTHOUSE)) {
> +    dist /= 4;
> +  }

what? the ruleset help mentions /=2 (as well as the current code) changing
the rules?

-mike



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