Complete.Org:
Mailing Lists:
Archives:
freeciv-dev:
November 2001: [Freeciv-Dev] Re: Tech cost patch v8 |
[Freeciv-Dev] Re: Tech cost patch v8[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Fri, Nov 30, 2001 at 07:40:29PM +0100, Raimar Falke wrote: > On Fri, Nov 30, 2001 at 08:18:56PM +0200, Juha Litola wrote: > > > Second: > > > + mul = 10 * (players - playerswithtech) / players; > > > + return mul * cost / 10; > > > should be rewritten as > > > return ((players - playerswithtech)*cost)/players; > > Yes, of course. Why didn't I notice that. Will you make the change > > or shall I send the v10. > You. Here is v10: - removed 10* from tech cost - reformatted a bit - tech_cost may drop to 0 if we have many players and cheap tech. In that case use cost 1 for tech. -- // Juha Litola
tech_cost_style10.diff.gz
pgpLKItHoMfxe.pgp
|