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