[Freeciv-Dev] Re: Tech cost patch v7
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Fri, Nov 30, 2001 at 10:19:26AM +0200, Juha Litola wrote:
> 7th and hopefully final version of tech cost patch.
>
> Changes to v6:
> - corrected algorithm for num_req_techs
> - num_reqs are now initialized to 0
> - num_reqs are now precalculated at server/ruleset.c
> - num_reqs are now transferred to client in tech packet
num_req_techs() can be removed. The code should go into
precalc_tech_data. IMHO
+ if(counted[tech])
+ return 0;
should be
+ if(counted[tech])
+ return advances[tech].num_reqs
Raimar
--
email: rf13@xxxxxxxxxxxxxxxxx
"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe trying
to produce bigger and better idiots. So far, the Universe is winning."
-- Rich Cook
|
|