[Freeciv-Dev] Re: (PR#2521) effects patch
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=2521 >
On Thu, 26 Aug 2004, Jason Short wrote:
> <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;
I suppose that is fine. But bear in mind find_source_building is meant as
a short-term hack, besides being slow (linear search).
---
Vasco Alexandre da Silva Costa @ Instituto Superior Tecnico, Lisboa
- [Freeciv-Dev] Re: (PR#2521) effects patch, Jason Short, 2004/08/25
- [Freeciv-Dev] Re: (PR#2521) effects patch, Jason Short, 2004/08/25
- [Freeciv-Dev] Re: (PR#2521) effects patch, Jason Short, 2004/08/25
- [Freeciv-Dev] Re: (PR#2521) effects patch, Jason Short, 2004/08/26
- [Freeciv-Dev] Re: (PR#2521) effects patch, Vasco Alexandre da Silva Costa, 2004/08/27
- [Freeciv-Dev] Re: (PR#2521) effects patch, Vasco Alexandre da Silva Costa, 2004/08/27
- [Freeciv-Dev] Re: (PR#2521) effects patch,
Vasco Alexandre da Silva Costa <=
- [Freeciv-Dev] Re: (PR#2521) effects patch, Jason Short, 2004/08/27
- [Freeciv-Dev] Re: (PR#2521) effects patch, Jason Short, 2004/08/27
- [Freeciv-Dev] Re: (PR#2521) effects patch, Vasco Alexandre da Silva Costa, 2004/08/27
- [Freeciv-Dev] Re: (PR#2521) effects patch, Vasco Alexandre da Silva Costa, 2004/08/27
- [Freeciv-Dev] Re: (PR#2521) effects patch, Jason Short, 2004/08/27
- [Freeciv-Dev] Re: (PR#2521) effects patch, Vasco Alexandre da Silva Costa, 2004/08/27
|
|