Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2002:
[Freeciv-Dev] Re: [FreeCiv-Cvs] per: This is a cleanup of assess_danger(
Home

[Freeciv-Dev] Re: [FreeCiv-Cvs] per: This is a cleanup of assess_danger(

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Freeciv Developers <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: [FreeCiv-Cvs] per: This is a cleanup of assess_danger() - Conditi...
From: Christian Knoke <chrisk@xxxxxxxx>
Date: Wed, 4 Sep 2002 09:08:33 +0200

On Tue, Sep 03, 2002 at 04:21:02PM -0700, freeciv@xxxxxxxxxxxxxxxxxxx wrote:
> This is an automated notification of a change to freeciv cvs, 
> on Tue Sep  3 16:18:23 PDT 2002 = Tue Sep  3 23:18:23 2002 (GMT)
> by Per I. Mathisen <per@xxxxxxxxxxx>
> 
> ---- Files affected:
> 
> freeciv/ai advmilitary.c
> 
> ---- Log message:
> 
> This is a cleanup of assess_danger()
>  - Conditional logic rewrapped to make code more readable.
>  - Wrapped up the convoluted military building want algorithms into a
> more consise form, and put it into a separate function. Used the more
> sophisticated wall algorithm also for coastal, sam and sdi.
>  - Fixed case where less dangerous situation would result in lower want
> for city walls than a slightly more dangerous situation (danger >
> defense, for high values of each, would give less want than the default
> want in danger situation). Now gives AI slightly more wall want in some
> cases.
>  - Gave big cities and our capital some default danger.

autogen.sh && make

...

advmilitary.c: In function `assess_danger':
advmilitary.c:348: structure has no member named `has_diplomat'
advmilitary.c:352: structure has no member named `has_diplomat'
advmilitary.c: In function `Military_advisor_choose_build':
advmilitary.c:1202: structure has no member named `has_diplomat'
make[2]: *** [advmilitary.o] Error 1
make[2]: Leaving directory /usr/local/httpd/freeciv/ai'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory /usr/local/httpd/freeciv'
make: *** [all-recursive-am] Error 2

Christian

-- 
Christian Knoke     * * *      http://www.enter.de/~c.knoke/
* * * * * * * * *  Ceterum censeo Microsoft esse dividendum.


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