Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2002:
[Freeciv-Dev] Re: Military amortize (PR#1196)
Home

[Freeciv-Dev] Re: Military amortize (PR#1196)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Gregory Berkolaiko <gberkolaiko@xxxxxxxxxxx>, freeciv-dev@xxxxxxxxxxx
Cc: bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Military amortize (PR#1196)
From: Raahul Kumar <raahul_da_man@xxxxxxxxx>
Date: Thu, 3 Jan 2002 16:01:08 -0800 (PST)

--- Gregory Berkolaiko <gberkolaiko@xxxxxxxxxxx> wrote:
> Hi,
> 
> Throughout military calculations in the AI some crazy amortize scheme is
> used repeatedly.  I do not claim I understand it, but I thought it's
> worthwhile separating it into a separate procedure, military_amortize.
> 
> It makes the code more concise and removes one imaginatively named
> variable (a0) from 3 functions!
> 
> From todays CVS,
> Compiles smooth.
> Savegames identical.
> 
> Best,
> G.
> 
> 
> 
> __________________________________________________

Looks good to me. I just wish there was a better name available than e.



__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com


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