Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2004:
[Freeciv-Dev] Re: (PR#2521) effects patch
Home

[Freeciv-Dev] Re: (PR#2521) effects patch

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: kaufman@xxxxxxxxxxxxxxxxxxxxxx, vasc@xxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#2521) effects patch
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 26 Aug 2004 16:15:04 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=2521 >

As I said in PR#9817:

I think default_building is not needed. aicity shouldn't be using it
anyway, it should use get_building_with_effect(EFT_PROD_TO_GOLD)
(find_source_building in the effects patch). city.c can just pick any
random building to build:

   impr_type_iterate(b) {
     if (can_build_improvement(pcity, b))
       pcity->currently_building = b;
   } impr_type_iterate_end;

jason




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