Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2001:
[Freeciv-Dev] Re: [PATCH2] Re: AI questions
Home

[Freeciv-Dev] Re: [PATCH2] Re: AI questions

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: rf13@xxxxxxxxxxxxxxxxxxxxxx
Cc: Raahul Kumar <raahul_da_man@xxxxxxxxx>, freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: [PATCH2] Re: AI questions
From: Petr Baudis <pasky@xxxxxxxxxxx>
Date: Sun, 25 Nov 2001 21:28:49 +0100

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


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