[Freeciv-Dev] Re: [PATCH] Display "Research every n turns"
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
I've created a function "turns_to_research" that calculates the
research, I'm not sure if it is too costly, but I couldn't find a >good way
to calculate total research other than the brute-force >method. I've placed
the function in "common/tech.c", I'm not sure on >both the function name or
placement though, as usual :-)
The "total research" is calculated in common/game.c, fuction civ_score(), as
pplayer->score.techout. You might want to use that.
Mike
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
- [Freeciv-Dev] Re: [PATCH] Display "Research every n turns",
Mike Jing <=
|
|