Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2001:
[Freeciv-Dev] Re: Criticism
Home

[Freeciv-Dev] Re: Criticism

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Raahul Kumar <raahul_da_man@xxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Criticism
From: Petr Baudis <pasky@xxxxxxxxxxx>
Date: Fri, 7 Dec 2001 11:59:04 +0100

Dear diary, on Fri, Dec 07, 2001 at 02:38:40AM CET, I got a letter,
where Raahul Kumar <raahul_da_man@xxxxxxxxx> told me, that...
> Just been reading advdomestic.c. 
> 
>  /* if (choice->want > 100) choice->want = 100; */         /* want > 100 means
> BUY RIGHT NOW */
> 
>  /* FIXME: rather (choice->want <= 0) --rwetmore */
> 
> I do not like either change. Elsewhere in the ai code it claims choice-want
> is in the range 0-100. I realise in fact that is actually not the case. I'd
> like it if you would actually make the change so that it is in the range
> 0-100.
This was commented before as well. Sorry, but really no behaviour changes in
AI for now. And now I believe that:
/* allowing buy of peaceful units after much testing -- Syela */
is related to that.

Testing for choice.want will be probably in separate patch, as there are
more places where this should be corrected (see Ross' corecleanup patch).

-- 

                                Petr "Pasky" Baudis

UN*X programmer, UN*X administrator, hobbies = IPv6, IRC, FreeCiv hacking
.
  "A common mistake that people make, when trying to design
   something completely foolproof is to underestimate the
   ingenuity of complete fools."
     -- Douglas Adams in Mostly Harmless
.
Public PGP key, geekcode and stuff: http://pasky.ji.cz/~pasky/


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