Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2000:
[Freeciv-Dev] Re: [PATCH] Display "Research every n turns"
Home

[Freeciv-Dev] Re: [PATCH] Display "Research every n turns"

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: [PATCH] Display "Research every n turns"
From: "Mike Jing" <miky40@xxxxxxxxxxx>
Date: Wed, 26 Jan 2000 20:07:00 EST
Reply-to: mike_jing@xxxxxxxxx

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


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