[Freeciv-Dev] Re: Military amortize (PR#1196)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
--- 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
|
|