[Freeciv-Dev] Re: [PATCH2] Re: AI questions
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
> > > for (id = 0; id < game.num_impr_types; id++) {
> > > if((!is_wonder(id)) && improvement_types[id].upkeep)
> > if((can_sell_building(pcity, id) && improvement_types[id].upkeep)
> > /* rather? We have to check also if it's even already built ;) */
>
> This was just test code to get an idea what effect your change would
> have.
I figured that, that conditional didn't make sense to me and I thought
the first part is wrong, however it looks the second one probably
was :-).
--
Petr "Pasky" Baudis
UN*X programmer, UN*X administrator, hobbies = IPv6, IRC
Real Users hate Real Programmers.
Public PGP key, geekcode and stuff: http://pasky.ji.cz/~pasky/
- [Freeciv-Dev] Re: AI (THRESHOLD magic), (continued)
- [Freeciv-Dev] Re: AI (THRESHOLD magic), Raahul Kumar, 2001/11/28
- [Freeciv-Dev] Re: AI (THRESHOLD magic), Raahul Kumar, 2001/11/28
- [Freeciv-Dev] [PATCH2] Re: AI questions, Petr Baudis, 2001/11/24
- [Freeciv-Dev] Re: [PATCH2] Re: AI questions, Raahul Kumar, 2001/11/24
- [Freeciv-Dev] Re: [PATCH2] Re: AI questions, Petr Baudis, 2001/11/25
- [Freeciv-Dev] Re: [PATCH2] Re: AI questions, Raimar Falke, 2001/11/26
- [Freeciv-Dev] Re: [PATCH2] Re: AI questions, Raimar Falke, 2001/11/25
- [Freeciv-Dev] Re: [PATCH2] Re: AI questions, Petr Baudis, 2001/11/25
- [Freeciv-Dev] Re: [PATCH2] Re: AI questions, Petr Baudis, 2001/11/25
- [Freeciv-Dev] Re: [PATCH2] Re: AI questions, Raimar Falke, 2001/11/25
- [Freeciv-Dev] Re: [PATCH2] Re: AI questions,
Petr Baudis <=
- [Freeciv-Dev] Re: AI questions, Raahul Kumar, 2001/11/24
- [Freeciv-Dev] Re: AI questions, Petr Baudis, 2001/11/24
- [Freeciv-Dev] Re: AI questions, Ross W. Wetmore, 2001/11/25
- [Freeciv-Dev] Re: AI questions, Raahul Kumar, 2001/11/26
- [Freeciv-Dev] Re: AI questions, Ross W. Wetmore, 2001/11/30
[Freeciv-Dev] Re: AI questions, Reinier Post, 2001/11/24
[Freeciv-Dev] Re: AI questions, Reinier Post, 2001/11/24
[Freeciv-Dev] Re: AI questions, Tony Stuckey, 2001/11/26
|
|